|
1 | 1 | // Test PLT section parsing on arm.
|
2 | 2 |
|
3 |
| -// RUN: %clang -target armv6a-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 3 | +// RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \ |
4 | 4 | // RUN: -nostdlib -nostdinc -shared %s -o %t1
|
5 | 5 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
6 | 6 | // RUN: -d %t1 | FileCheck %s --check-prefixes=CHECK,LE
|
7 | 7 |
|
8 | 8 | // Test PLT section parsing on armeb.
|
9 | 9 |
|
10 |
| -// RUN: %clang -target armv6aeb-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 10 | +// RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \ |
11 | 11 | // RUN: -nostdlib -nostdinc -shared %s -o %t2
|
12 | 12 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
13 | 13 | // RUN: -d %t2 | FileCheck %s --check-prefixes=CHECK,BE
|
14 | 14 | // RUN: obj2yaml %t2 | FileCheck %s --check-prefixes=NOBE8
|
15 | 15 |
|
16 | 16 | // Test PLT section parsing on armeb with be8.
|
17 | 17 |
|
18 |
| -// RUN: %clang -target armv7aeb-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 18 | +// RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \ |
19 | 19 | // RUN: -nostdlib -nostdinc -shared %s -o %t3
|
20 | 20 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
21 | 21 | // RUN: -d %t3 | FileCheck %s --check-prefixes=CHECK,BE
|
|
31 | 31 | // CHECK-NEXT: <_start>:
|
32 | 32 | // CHECK-NEXT: push {r11, lr}
|
33 | 33 | // CHECK-NEXT: mov r11, sp
|
34 |
| -// CHECK-NEXT: bl 0x10240 <func1@plt> |
35 |
| -// CHECK-NEXT: bl 0x10250 <func2@plt> |
36 |
| -// CHECK-NEXT: bl 0x10260 <func3@plt> |
| 34 | +// CHECK-NEXT: bl {{.*}} <func1@plt> |
| 35 | +// CHECK-NEXT: bl {{.*}} <func2@plt> |
| 36 | +// CHECK-NEXT: bl {{.*}} <func3@plt> |
37 | 37 |
|
38 | 38 | // CHECK: Disassembly of section .plt:
|
39 |
| -// CHECK: 00010240 <func1@plt>: |
| 39 | +// CHECK: <func1@plt>: |
40 | 40 | // CHECK-NEXT: add r12, pc, #0, #12
|
41 | 41 | // CHECK-NEXT: add r12, r12, #32, #20
|
42 | 42 | // CHECK-NEXT: ldr pc, [r12, #132]!
|
43 | 43 | // CHECK-NEXT: .word 0xd4d4d4d4
|
44 | 44 | // CHECK-EMPTY:
|
45 |
| -// CHECK-NEXT: 00010250 <func2@plt>: |
| 45 | +// CHECK-NEXT: <func2@plt>: |
46 | 46 | // CHECK-NEXT: add r12, pc, #0, #12
|
47 | 47 | // CHECK-NEXT: add r12, r12, #32, #20
|
48 | 48 | // CHECK-NEXT: ldr pc, [r12, #120]!
|
49 | 49 | // CHECK-NEXT: .word 0xd4d4d4d4
|
50 | 50 | // CHECK-EMPTY:
|
51 |
| -// CHECK-NEXT: 00010260 <func3@plt>: |
| 51 | +// CHECK-NEXT: <func3@plt>: |
52 | 52 | // CHECK-NEXT: add r12, pc, #0, #12
|
53 | 53 | // CHECK-NEXT: add r12, r12, #32, #20
|
54 | 54 | // CHECK-NEXT: ldr pc, [r12, #108]!
|
55 | 55 | // CHECK-NEXT: .word 0xd4d4d4d4
|
56 | 56 |
|
57 | 57 | // Test PLT section parsing on thumb.
|
58 | 58 |
|
59 |
| -// RUN: %clang -target thumbv8.1m.main-none-linux-eabi \ |
| 59 | +// RUN: %clang --target=thumbv8.1m.main-none-linux-eabi \ |
60 | 60 | // RUN: -nostdlib -nostdinc -c %s -o %t4.o
|
61 | 61 | // RUN: ld.lld --shared %t4.o -o %t4
|
62 | 62 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
63 | 63 | // RUN: -d %t4 | FileCheck %s --check-prefixes=THUMB,LE
|
64 | 64 |
|
65 | 65 | // Test PLT section parsing on thumbeb.
|
66 | 66 |
|
67 |
| -// RUN: %clang -target thumbebv8.1m.main-none-linux-eabi \ |
| 67 | +// RUN: %clang --target=thumbebv8.1m.main-none-linux-eabi \ |
68 | 68 | // RUN: -nostdlib -nostdinc -c %s -o %t5.o
|
69 | 69 | // RUN: ld.lld --shared %t5.o -o %t5
|
70 | 70 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
|
73 | 73 |
|
74 | 74 | // Test PLT section parsing on thumbeb with be8.
|
75 | 75 |
|
76 |
| -// RUN: %clang -target thumbebv8.1m.main-none-linux-eabi \ |
| 76 | +// RUN: %clang --target=thumbebv8.1m.main-none-linux-eabi \ |
77 | 77 | // RUN: -nostdlib -nostdinc -c %s -o %t6.o
|
78 | 78 | // RUN: ld.lld --shared --be8 %t6.o -o %t6
|
79 | 79 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
|
85 | 85 | // THUMB-NEXT: <_start>:
|
86 | 86 | // THUMB-NEXT: push {r7, lr}
|
87 | 87 | // THUMB-NEXT: mov r7, sp
|
88 |
| -// THUMB-NEXT: bl 0x10270 <func1@plt> |
89 |
| -// THUMB-NEXT: bl 0x10280 <func2@plt> |
90 |
| -// THUMB-NEXT: bl 0x10290 <func3@plt> |
| 88 | +// THUMB-NEXT: bl {{.*}} <func1@plt> |
| 89 | +// THUMB-NEXT: bl {{.*}} <func2@plt> |
| 90 | +// THUMB-NEXT: bl {{.*}} <func3@plt> |
91 | 91 |
|
92 | 92 | // THUMB: Disassembly of section .plt:
|
93 | 93 | // THUMB-EMPTY:
|
94 |
| -// THUMB: 00010270 <func1@plt>: |
| 94 | +// THUMB: <func1@plt>: |
95 | 95 | // THUMB-NEXT: movw r12, #136
|
96 | 96 | // THUMB-NEXT: movt r12, #2
|
97 | 97 | // THUMB-NEXT: add r12, pc
|
98 | 98 | // THUMB-NEXT: ldr.w pc, [r12]
|
99 |
| -// THUMB-NEXT: b 0x1027a |
| 99 | +// THUMB-NEXT: b 0x |
100 | 100 | // THUMB-EMPTY:
|
101 |
| -// THUMB-NEXT: 00010280 <func2@plt>: |
| 101 | +// THUMB-NEXT: <func2@plt>: |
102 | 102 | // THUMB-NEXT: movw r12, #124
|
103 | 103 | // THUMB-NEXT: movt r12, #2
|
104 | 104 | // THUMB-NEXT: add r12, pc
|
105 | 105 | // THUMB-NEXT: ldr.w pc, [r12]
|
106 |
| -// THUMB-NEXT: b 0x1028a |
| 106 | +// THUMB-NEXT: b 0x |
107 | 107 | // THUMB-EMPTY:
|
108 |
| -// THUMB-NEXT: 00010290 <func3@plt>: |
| 108 | +// THUMB-NEXT: <func3@plt>: |
109 | 109 | // THUMB-NEXT: movw r12, #112
|
110 | 110 | // THUMB-NEXT: movt r12, #2
|
111 | 111 | // THUMB-NEXT: add r12, pc
|
112 | 112 | // THUMB-NEXT: ldr.w pc, [r12]
|
113 |
| -// THUMB-NEXT: b 0x1029a |
| 113 | +// THUMB-NEXT: b 0x |
114 | 114 |
|
115 | 115 | // Test PLT section with long entries parsing on arm.
|
116 | 116 |
|
|
120 | 120 | // RUN: .got.plt 0x9000000 : { *(.got.plt) } \
|
121 | 121 | // RUN: }" > %t.long.script
|
122 | 122 |
|
123 |
| -// RUN: %clang -target armv6a-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 123 | +// RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \ |
124 | 124 | // RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \
|
125 | 125 | // RUN: -shared %s -o %t7
|
126 | 126 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
127 | 127 | // RUN: -d %t7 | FileCheck %s --check-prefixes=CHECKLONG,LE
|
128 | 128 |
|
129 | 129 | // Test PLT section with long entries parsing on armeb.
|
130 | 130 |
|
131 |
| -// RUN: %clang -target armv6aeb-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 131 | +// RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \ |
132 | 132 | // RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \
|
133 | 133 | // RUN: -shared %s -o %t8
|
134 | 134 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
|
137 | 137 |
|
138 | 138 | // Test PLT section with long entries parsing on armeb with be8.
|
139 | 139 |
|
140 |
| -// RUN: %clang -target armv7aeb-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 140 | +// RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \ |
141 | 141 | // RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \
|
142 | 142 | // RUN: -shared %s -o %t9
|
143 | 143 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
|
180 | 180 | // RUN: .got.plt 0x8002020 : { *(.got.plt) } \
|
181 | 181 | // RUN: }" > %t.mix.script
|
182 | 182 |
|
183 |
| -// RUN: %clang -target armv6a-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 183 | +// RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \ |
184 | 184 | // RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \
|
185 | 185 | // RUN: -shared %s -o %t10
|
186 | 186 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
187 | 187 | // RUN: -d %t10 | FileCheck %s --check-prefixes=CHECKMIX,LE
|
188 | 188 |
|
189 | 189 | // Test PLT section with mixed long and short entries parsing on armeb.
|
190 | 190 |
|
191 |
| -// RUN: %clang -target armv6aeb-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 191 | +// RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \ |
192 | 192 | // RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \
|
193 | 193 | // RUN: -shared %s -o %t11
|
194 | 194 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
|
197 | 197 |
|
198 | 198 | // Test PLT section with mixed long and short entries parsing on armeb with be8.
|
199 | 199 |
|
200 |
| -// RUN: %clang -target armv7aeb-none-linux-gnueabi -fuse-ld=ld.lld \ |
| 200 | +// RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \ |
201 | 201 | // RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \
|
202 | 202 | // RUN: -shared %s -o %t12
|
203 | 203 | // RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
|
|
0 commit comments