Adding test case for abuse of :got: in offset load
The :got: modifier is not meaningful in a register offset load store instruction and should result in a diagnostic.
This commit is contained in:
parent
6f4a313ba4
commit
27228ca23e
3 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||||
|
|
||||||
|
* gas/aarch64/diagnostic.s: Add LDR test.
|
||||||
|
* gas/aarch64/diagnostic.l: Likewise.
|
||||||
|
|
||||||
2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||||
|
|
||||||
* gas/aarch64/diagnostic.s: Add ADR test.
|
* gas/aarch64/diagnostic.s: Add ADR test.
|
||||||
|
|
|
@ -115,3 +115,4 @@
|
||||||
[^:]*:124: Warning: unpredictable transfer with writeback -- `stp x0,x1,\[x0,#16\]!'
|
[^:]*:124: Warning: unpredictable transfer with writeback -- `stp x0,x1,\[x0,#16\]!'
|
||||||
[^:]*:125: Warning: unpredictable transfer with writeback -- `ldp x0,x1,\[x1\],#16'
|
[^:]*:125: Warning: unpredictable transfer with writeback -- `ldp x0,x1,\[x1\],#16'
|
||||||
[^:]*:126: Error: this relocation modifier is not allowed on this instruction at operand 2 -- `adr x2,:got:s1'
|
[^:]*:126: Error: this relocation modifier is not allowed on this instruction at operand 2 -- `adr x2,:got:s1'
|
||||||
|
[^:]*:127: Error: this relocation modifier is not allowed on this instruction at operand 2 -- `ldr x0,\[x0,:got:s1\]'
|
||||||
|
|
|
@ -124,3 +124,4 @@
|
||||||
stp x0, x1, [x0, #16]!
|
stp x0, x1, [x0, #16]!
|
||||||
ldp x0, x1, [x1], #16
|
ldp x0, x1, [x1], #16
|
||||||
adr x2, :got:s1
|
adr x2, :got:s1
|
||||||
|
ldr x0, [x0, :got:s1]
|
||||||
|
|
Loading…
Add table
Reference in a new issue