diff options
author | Paul Brook <paul@codesourcery.com> | 2006-04-07 15:03:45 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-04-07 15:03:45 +0000 |
commit | 53365c0d765c72dcca8ca57f4c8dd8bb2e0c1b19 (patch) | |
tree | e6f71e76dbfc3989453cca5d4c4c5fd4980e2bb1 /gas/testsuite | |
parent | 235ecfbc5e0a90427bd7a14f6d8a663f4d40e7a7 (diff) | |
download | gdb-53365c0d765c72dcca8ca57f4c8dd8bb2e0c1b19.zip gdb-53365c0d765c72dcca8ca57f4c8dd8bb2e0c1b19.tar.gz gdb-53365c0d765c72dcca8ca57f4c8dd8bb2e0c1b19.tar.bz2 |
2006-04-07 Paul Brook <paul@codesourcery.com>
gas/
* config/tc-arm.c (THUMB2_LOAD_BIT): Define.
(move_or_literal_pool): Handle Thumb-2 instructions.
(do_t_ldst): Call move_or_literal_pool for =N addressing modes.
gas/testsuite/
* gas/arm/thumb2_pool.d: New test.
* gas/arm/thumb2_pool.s: New test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_pool.d | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_pool.s | 13 |
3 files changed, 33 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 28bbea8..6a569df 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-04-07 Paul Brook <paul@codesourcery.com> + + * gas/arm/thumb2_pool.d: New test. + * gas/arm/thumb2_pool.s: New test. + 2006-04-05 Richard Sandiford <richard@codesourcery.com> * gas/sparc/vxworks-pic.s, gas/sparc/vxworks-pic.d: New test. diff --git a/gas/testsuite/gas/arm/thumb2_pool.d b/gas/testsuite/gas/arm/thumb2_pool.d new file mode 100644 index 0000000..7bf0c60 --- /dev/null +++ b/gas/testsuite/gas/arm/thumb2_pool.d @@ -0,0 +1,15 @@ +# as: -march=armv6t2 +# objdump: -dr --prefix-addresses --show-raw-insn + +.*: +file format .*arm.* + +Disassembly of section .text: +0+000 <[^>]+> 4e04 ldr r6, \[pc, #16\] \(00+14 <[^>]+>\) +0+002 <[^>]+> 4904 ldr r1, \[pc, #16\] \(00+14 <[^>]+>\) +0+004 <[^>]+> f8df 600c ldr\.w r6, \[pc, #12\] ; 00+14 <[^>]+> +0+008 <[^>]+> f8df 9008 ldr\.w r9, \[pc, #8\] ; 00+14 <[^>]+> +0+00c <[^>]+> bf00 nop +0+00e <[^>]+> f8df 5004 ldr\.w r5, \[pc, #4\] ; 00+14 <[^>]+> +0+012 <[^>]+> 4900 ldr r1, \[pc, #0\] \(00+14 <[^>]+>\) +0+014 <[^>]+> (5678|1234) .* +0+016 <[^>]+> (1234|5678) .* diff --git a/gas/testsuite/gas/arm/thumb2_pool.s b/gas/testsuite/gas/arm/thumb2_pool.s new file mode 100644 index 0000000..844e77e --- /dev/null +++ b/gas/testsuite/gas/arm/thumb2_pool.s @@ -0,0 +1,13 @@ + .text + .thumb + .syntax unified + .thumb_func +thumb2_ldr: + ldr r6, =0x12345678 + ldr.n r1, =0x12345678 + ldr.w r6, =0x12345678 + ldr r9, =0x12345678 + nop + ldr.w r5, =0x12345678 + ldr r1, =0x12345678 + .pool |