From: Nick Clifton Date: Mon, 23 Sep 2002 16:46:33 +0000 (+0000) Subject: Add LDM and STM instructions which are unpredictable because of their use of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d7f57761d37cf7c7d765c1eeb2d7034702b61f3;p=binutils-gdb.git Add LDM and STM instructions which are unpredictable because of their use of the writeback bit. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 467605e96d4..9523d4858b6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-09-23 Nick Clifton + + * gas/arm/armv1-bad.s: Add LDM and STM instructions which are + unpredictable because of their use of the writeback bit. + 2002-09-21 Nick Clifton * gas/arm/inst.s: Fix UNPREDICATABLE use of writeback in LDM/STM diff --git a/gas/testsuite/gas/arm/armv1-bad.l b/gas/testsuite/gas/arm/armv1-bad.l index 96d9e73981f..19a7e9a216d 100644 --- a/gas/testsuite/gas/arm/armv1-bad.l +++ b/gas/testsuite/gas/arm/armv1-bad.l @@ -6,3 +6,7 @@ [^:]*:8: Error: invalid constant -- `mov r0,#0x1ff' [^:]*:9: Error: bad instruction `cmpl r0,r0' [^:]*:10: Error: selected processor does not support `strh r0,\[r1\]' +[^:]*:11: Warning: writeback of base register is UNPREDICTABLE +[^:]*:12: Warning: writeback of base register when in register list is UNPREDICTABLE +[^:]*:13: Warning: writeback of base register is UNPREDICTABLE +[^:]*:15: Warning: if writeback register is in list, it must be the lowest reg in the list diff --git a/gas/testsuite/gas/arm/armv1-bad.s b/gas/testsuite/gas/arm/armv1-bad.s index c879a739e01..751aefe1703 100644 --- a/gas/testsuite/gas/arm/armv1-bad.s +++ b/gas/testsuite/gas/arm/armv1-bad.s @@ -8,3 +8,8 @@ entry: mov r0, #0x1ff cmpl r0, r0 strh r0, [r1] + ldmfa r4!, {r8, r9}^ + ldmfa r4!, {r4, r8, r9} + stmfa r4!, {r8, r9}^ + stmdb r4!, {r4, r8, r9} @ This is OK. + stmdb r8!, {r4, r8, r9}