From 92e90b6eb3b2c77ecc6b93fe96f0896b24039ec2 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Fri, 29 Jul 2005 17:28:33 +0000 Subject: 2005-07-29 Paul Brook bfd/ * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add. * bfd-in2.h: Regeenrate. * libbfd.h: Regenerate. gas/ * config/tc-arm.c (parse_tb): New function. (enum operand_parse_code): Add OP_TB. (parse_operands): Handle OP_TB. (do_t_add_sub_w, do_t_tb): New functions. (insns): Add entries for addw, subw, tbb and tbh. (md_apply_fix): Handle BFD_RELOC_ARM_T32_IMM12. gas/testsuite/ * gas/arm/thumb32.s: Add tests for addw, subw, tbb and tbh. * gas/arm/thumb32.d: Ditto. opcodes/ * arm-dis.c (thumb32_opc): Fix addressing mode for tbh. (print_insn_thumb32): Fix decoding of thumb2 'I' operands. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/arm/thumb32.d | 8 ++++++++ gas/testsuite/gas/arm/thumb32.s | 8 ++++++++ 3 files changed, 21 insertions(+) (limited to 'gas/testsuite') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a1183a8..3638c67 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-07-29 Paul Brook + + * gas/arm/thumb32.s: Add tests for addw, subw, tbb and tbh. + * gas/arm/thumb32.d: Ditto. + 2005-07-27 Jan Beulich * gas/ia64/unwind-bad.l: Uncomment patterns matching new warnings. diff --git a/gas/testsuite/gas/arm/thumb32.d b/gas/testsuite/gas/arm/thumb32.d index a74253e..530ec0b 100644 --- a/gas/testsuite/gas/arm/thumb32.d +++ b/gas/testsuite/gas/arm/thumb32.d @@ -1011,3 +1011,11 @@ Disassembly of section .text: 0+cf4 <[^>]+> f8df 1155 ldr\.w r1, \[pc, #341\] ; 0+e4d <[^>]+> 0+cf8 <[^>]+> f85f 12aa ldr\.w r1, \[pc, #-682\] ; 0+a52 <[^>]+> 0+cfc <[^>]+> f85f 1155 ldr\.w r1, \[pc, #-341\] ; 0+bab <[^>]+> +0+d00 <[^>]+> f200 0900 addw r9, r0, #0 ; 0x0 +0+d04 <[^>]+> f60f 76ff addw r6, pc, #4095 ; 0xfff +0+d08 <[^>]+> f6a9 2685 subw r6, r9, #2693 ; 0xa85 +0+d0c <[^>]+> f2a9 567a subw r6, r9, #1402 ; 0x57a +0+d10 <[^>]+> e8df f006 tbb \[pc, r6\] +0+d14 <[^>]+> e8d0 f009 tbb \[r0, r9\] +0+d18 <[^>]+> e8df f017 tbh \[pc, r7, lsl #1\] +0+d1c <[^>]+> e8d0 f018 tbh \[r0, r8, lsl #1\] diff --git a/gas/testsuite/gas/arm/thumb32.s b/gas/testsuite/gas/arm/thumb32.s index 4baf4ff..096b445 100644 --- a/gas/testsuite/gas/arm/thumb32.s +++ b/gas/testsuite/gas/arm/thumb32.s @@ -745,3 +745,11 @@ xta: ldpcimm ldrh ldpcimm ldrsh ldpcimm ldr + addw r9, r0, #0 + addw r6, pc, #0xfff + subw r6, r9, #0xa85 + subw r6, r9, #0x57a + tbb [pc, r6] + tbb [r0, r9] + tbh [pc, r7, lsl #1] + tbh [r0, r8, lsl #1] -- cgit v1.1