Skip to content

Commit 29d0f50

Browse files
committed
Addressed @MaskRay comments
1 parent f6b7bbd commit 29d0f50

File tree

1 file changed

+27
-27
lines changed
  • cross-project-tests/tools/llvm-objdump/ARM

1 file changed

+27
-27
lines changed

cross-project-tests/tools/llvm-objdump/ARM/plt.c

+27-27
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// Test PLT section parsing on arm.
22

3-
// RUN: %clang -target armv6a-none-linux-gnueabi -fuse-ld=ld.lld \
3+
// RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \
44
// RUN: -nostdlib -nostdinc -shared %s -o %t1
55
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
66
// RUN: -d %t1 | FileCheck %s --check-prefixes=CHECK,LE
77

88
// Test PLT section parsing on armeb.
99

10-
// RUN: %clang -target armv6aeb-none-linux-gnueabi -fuse-ld=ld.lld \
10+
// RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \
1111
// RUN: -nostdlib -nostdinc -shared %s -o %t2
1212
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
1313
// RUN: -d %t2 | FileCheck %s --check-prefixes=CHECK,BE
1414
// RUN: obj2yaml %t2 | FileCheck %s --check-prefixes=NOBE8
1515

1616
// Test PLT section parsing on armeb with be8.
1717

18-
// RUN: %clang -target armv7aeb-none-linux-gnueabi -fuse-ld=ld.lld \
18+
// RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \
1919
// RUN: -nostdlib -nostdinc -shared %s -o %t3
2020
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
2121
// RUN: -d %t3 | FileCheck %s --check-prefixes=CHECK,BE
@@ -31,40 +31,40 @@
3131
// CHECK-NEXT: <_start>:
3232
// CHECK-NEXT: push {r11, lr}
3333
// 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>
3737

3838
// CHECK: Disassembly of section .plt:
39-
// CHECK: 00010240 <func1@plt>:
39+
// CHECK: <func1@plt>:
4040
// CHECK-NEXT: add r12, pc, #0, #12
4141
// CHECK-NEXT: add r12, r12, #32, #20
4242
// CHECK-NEXT: ldr pc, [r12, #132]!
4343
// CHECK-NEXT: .word 0xd4d4d4d4
4444
// CHECK-EMPTY:
45-
// CHECK-NEXT: 00010250 <func2@plt>:
45+
// CHECK-NEXT: <func2@plt>:
4646
// CHECK-NEXT: add r12, pc, #0, #12
4747
// CHECK-NEXT: add r12, r12, #32, #20
4848
// CHECK-NEXT: ldr pc, [r12, #120]!
4949
// CHECK-NEXT: .word 0xd4d4d4d4
5050
// CHECK-EMPTY:
51-
// CHECK-NEXT: 00010260 <func3@plt>:
51+
// CHECK-NEXT: <func3@plt>:
5252
// CHECK-NEXT: add r12, pc, #0, #12
5353
// CHECK-NEXT: add r12, r12, #32, #20
5454
// CHECK-NEXT: ldr pc, [r12, #108]!
5555
// CHECK-NEXT: .word 0xd4d4d4d4
5656

5757
// Test PLT section parsing on thumb.
5858

59-
// RUN: %clang -target thumbv8.1m.main-none-linux-eabi \
59+
// RUN: %clang --target=thumbv8.1m.main-none-linux-eabi \
6060
// RUN: -nostdlib -nostdinc -c %s -o %t4.o
6161
// RUN: ld.lld --shared %t4.o -o %t4
6262
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
6363
// RUN: -d %t4 | FileCheck %s --check-prefixes=THUMB,LE
6464

6565
// Test PLT section parsing on thumbeb.
6666

67-
// RUN: %clang -target thumbebv8.1m.main-none-linux-eabi \
67+
// RUN: %clang --target=thumbebv8.1m.main-none-linux-eabi \
6868
// RUN: -nostdlib -nostdinc -c %s -o %t5.o
6969
// RUN: ld.lld --shared %t5.o -o %t5
7070
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
@@ -73,7 +73,7 @@
7373

7474
// Test PLT section parsing on thumbeb with be8.
7575

76-
// RUN: %clang -target thumbebv8.1m.main-none-linux-eabi \
76+
// RUN: %clang --target=thumbebv8.1m.main-none-linux-eabi \
7777
// RUN: -nostdlib -nostdinc -c %s -o %t6.o
7878
// RUN: ld.lld --shared --be8 %t6.o -o %t6
7979
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
@@ -85,32 +85,32 @@
8585
// THUMB-NEXT: <_start>:
8686
// THUMB-NEXT: push {r7, lr}
8787
// 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>
9191

9292
// THUMB: Disassembly of section .plt:
9393
// THUMB-EMPTY:
94-
// THUMB: 00010270 <func1@plt>:
94+
// THUMB: <func1@plt>:
9595
// THUMB-NEXT: movw r12, #136
9696
// THUMB-NEXT: movt r12, #2
9797
// THUMB-NEXT: add r12, pc
9898
// THUMB-NEXT: ldr.w pc, [r12]
99-
// THUMB-NEXT: b 0x1027a
99+
// THUMB-NEXT: b 0x
100100
// THUMB-EMPTY:
101-
// THUMB-NEXT: 00010280 <func2@plt>:
101+
// THUMB-NEXT: <func2@plt>:
102102
// THUMB-NEXT: movw r12, #124
103103
// THUMB-NEXT: movt r12, #2
104104
// THUMB-NEXT: add r12, pc
105105
// THUMB-NEXT: ldr.w pc, [r12]
106-
// THUMB-NEXT: b 0x1028a
106+
// THUMB-NEXT: b 0x
107107
// THUMB-EMPTY:
108-
// THUMB-NEXT: 00010290 <func3@plt>:
108+
// THUMB-NEXT: <func3@plt>:
109109
// THUMB-NEXT: movw r12, #112
110110
// THUMB-NEXT: movt r12, #2
111111
// THUMB-NEXT: add r12, pc
112112
// THUMB-NEXT: ldr.w pc, [r12]
113-
// THUMB-NEXT: b 0x1029a
113+
// THUMB-NEXT: b 0x
114114

115115
// Test PLT section with long entries parsing on arm.
116116

@@ -120,15 +120,15 @@
120120
// RUN: .got.plt 0x9000000 : { *(.got.plt) } \
121121
// RUN: }" > %t.long.script
122122

123-
// RUN: %clang -target armv6a-none-linux-gnueabi -fuse-ld=ld.lld \
123+
// RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \
124124
// RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \
125125
// RUN: -shared %s -o %t7
126126
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
127127
// RUN: -d %t7 | FileCheck %s --check-prefixes=CHECKLONG,LE
128128

129129
// Test PLT section with long entries parsing on armeb.
130130

131-
// RUN: %clang -target armv6aeb-none-linux-gnueabi -fuse-ld=ld.lld \
131+
// RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \
132132
// RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \
133133
// RUN: -shared %s -o %t8
134134
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
@@ -137,7 +137,7 @@
137137

138138
// Test PLT section with long entries parsing on armeb with be8.
139139

140-
// RUN: %clang -target armv7aeb-none-linux-gnueabi -fuse-ld=ld.lld \
140+
// RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \
141141
// RUN: -Xlinker --script=%t.long.script -nostdlib -nostdinc \
142142
// RUN: -shared %s -o %t9
143143
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
@@ -180,15 +180,15 @@
180180
// RUN: .got.plt 0x8002020 : { *(.got.plt) } \
181181
// RUN: }" > %t.mix.script
182182

183-
// RUN: %clang -target armv6a-none-linux-gnueabi -fuse-ld=ld.lld \
183+
// RUN: %clang --target=armv6a-none-linux-gnueabi -fuse-ld=lld \
184184
// RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \
185185
// RUN: -shared %s -o %t10
186186
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
187187
// RUN: -d %t10 | FileCheck %s --check-prefixes=CHECKMIX,LE
188188

189189
// Test PLT section with mixed long and short entries parsing on armeb.
190190

191-
// RUN: %clang -target armv6aeb-none-linux-gnueabi -fuse-ld=ld.lld \
191+
// RUN: %clang --target=armv6aeb-none-linux-gnueabi -fuse-ld=lld \
192192
// RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \
193193
// RUN: -shared %s -o %t11
194194
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \
@@ -197,7 +197,7 @@
197197

198198
// Test PLT section with mixed long and short entries parsing on armeb with be8.
199199

200-
// RUN: %clang -target armv7aeb-none-linux-gnueabi -fuse-ld=ld.lld \
200+
// RUN: %clang --target=armv7aeb-none-linux-gnueabi -fuse-ld=lld \
201201
// RUN: -Xlinker --script=%t.mix.script -nostdlib -nostdinc \
202202
// RUN: -shared %s -o %t12
203203
// RUN: llvm-objdump --no-show-raw-insn --no-print-imm-hex \

0 commit comments

Comments
 (0)