]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/testsuite/gas/arm/sp-pc-usage-t.s
Generate a warning in the ARM assembler if a PC-relative thumb load instruction is...
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / arm / sp-pc-usage-t.s
index cf38594233e0f4bf7691f224d2db187eefaca8f7..70bf0d9e7c8c35658f069a993a2ab59bd2d8332f 100644 (file)
@@ -3,7 +3,8 @@
 .text
 .thumb
        .global foo
-foo:   
+foo:
+       .align 4
 @ Section A6.1.3 "Use of 0b1101 as a register specifier".
 
 @ R13 as the source or destination register of a mov instruction.
@@ -35,17 +36,10 @@ ldr pc, [pc]
 ldr    sp, [sp]
 ldr    pc, [sp]
 ldr    sp, [pc]
-ldr    sp, [r0, +pc]
 
 str    r0, [sp]
-str    r0, [pc]
-str    pc, [r0]
 str    sp, [r0]
-str    pc, [pc]
 str    sp, [sp]
-str    pc, [sp]
-str    sp, [pc]
-str    sp, [r0, +pc]
 
 @ R13 as the first operand <Rn> in any add{s}, cmn, cmp, or sub{s} instruction.