File: literal-vldr-arm.s

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (48 lines) | stat: -rw-r--r-- 1,468 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@@ Check that PC-relative memory addressing is annotated

@ RUN: llvm-mc %s -triple=armv8a --mattr=+fullfp16 -filetype=obj | \
@ RUN:   llvm-objdump -d --no-show-raw-insn --triple=armv8a --mattr=+fullfp16 - | \
@ RUN:   FileCheck %s

.text
foo:
@ CHECK:      00000000 <foo>:
  .short 0x0102
foo2:
@ CHECK:      00000002 <foo2>:
  .short 0x0304

_start:
@ CHECK:      00000004 <_start>:
@@ Check AddrMode5 instructions, with positive and negative immediates
  vldr d0, foo
  vldr s0, bar
@ CHECK-NEXT:    4: vldr    d0, [pc, #-12]          @ 0x0 <foo>
@ CHECK-NEXT:    8: vldr    s0, [pc, #20]           @ 0x24 <bar>

@@ Check that AddrMode5 instructions which do not use PC-relative addressing are
@@ not annotated
  vldr d0, [r1, #8]
@ CHECK-NEXT:    c: vldr    d0, [r1, #8]{{$}}

@@ Check AddrMode5FP16 instructions, with positive and negative immediates
  vldr.16 s0, foo
  vldr.16 s0, foo2
  vldr.16 s1, bar
  vldr.16 s1, bar2
@ CHECK-NEXT:   10: vldr.16 s0, [pc, #-24]          @ 0x0 <foo>
@ CHECK-NEXT:   14: vldr.16 s0, [pc, #-26]          @ 0x2 <foo2>
@ CHECK-NEXT:   18: vldr.16 s1, [pc, #4]            @ 0x24 <bar>
@ CHECK-NEXT:   1c: vldr.16 s1, [pc, #2]            @ 0x26 <bar2>

@@ Check that AddrMode5FP16 instructions which do not use PC-relative addressing
@@ are not annotated
  vldr.16 s0, [r1, #8]
@ CHECK-NEXT:   20: vldr.16 s0, [r1, #8]{{$}}

bar:
@ CHECK:      00000024 <bar>:
  .short 0x0102
bar2:
@ CHECK:      00000026 <bar2>:
  .short 0x0304