@@ Check that PC-relative memory addressing is annotated
@ RUN: llvm-mc %s -triple=thumbv8a --mattr=+fullfp16 -filetype=obj | \
@ RUN: llvm-objdump -d --no-show-raw-insn --triple=thumbv8a --mattr=+fullfp16 - | \
@ RUN: FileCheck %s
.text
foo:
@ CHECK: 00000000 <foo>:
.short 0x0102
foo2:
@ CHECK: 00000002 <foo2>:
.short 0x0304
_start:
@@ Check AddrMode5 instructions, with positive and negative immediates
.balign 4
vldr d0, foo
vldr s0, bar
@ CHECK: 4: vldr d0, [pc, @ CHECK-NEXT: 8: vldr s0, [pc,
@@ Same instructions, but the addresses are not 4-byte aligned
nop
vldr d0, foo
vldr s0, bar
@ CHECK: e: vldr d0, [pc, @ CHECK-NEXT: 12: vldr s0, [pc,
@@ Check that AddrMode5 instructions which do not use PC-relative addressing are not annotated
vldr d0, [r1, @ CHECK: 16: vldr d0, [r1,
@@ Check AddrMode5FP16 instructions, with positive and negative immediates
.balign 4
vldr.16 s0, foo
vldr.16 s0, foo2
vldr.16 s1, bar
vldr.16 s1, bar2
@ CHECK: 1c: vldr.16 s0, [pc, @ CHECK-NEXT: 20: vldr.16 s0, [pc, @ CHECK-NEXT: 24: vldr.16 s1, [pc, @ CHECK-NEXT: 28: vldr.16 s1, [pc,
@@ Same instructions, but the addresses are not 4-byte aligned
nop
vldr.16 s0, foo
vldr.16 s0, foo2
vldr.16 s1, bar
vldr.16 s1, bar2
@ CHECK: 2e: vldr.16 s0, [pc, @ CHECK-NEXT: 32: vldr.16 s0, [pc, @ CHECK-NEXT: 36: vldr.16 s1, [pc, @ CHECK-NEXT: 3a: vldr.16 s1, [pc,
@@ Check that AddrMode5FP16 instructions which do not use PC-relative addressing are not annotated
vldr.16 s0, [r1, @ CHECK: 3e: vldr.16 s0, [r1,
.balign 4
bar:
@ CHECK: 00000044 <bar>:
.short 0x0102
bar2:
@ CHECK: 00000046 <bar2>:
.short 0x0304