Skip to content

Commit 2601ac8

Browse files
Fix linker tests
These tests were expecting the old `bc 0, 0` / `bcr 0, %r0` disassemblies for nops. This commit changes them to expect the proper mnemonics in disassembly.
1 parent 8f61af4 commit 2601ac8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lld/test/ELF/systemz-gotent-relax-und-dso.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
# DISASM: Disassembly of section .text:
1515
# DISASM-EMPTY:
1616
# DISASM-NEXT: <foo>:
17-
# DISASM-NEXT: bc 0, 0
17+
# DISASM-NEXT: nop 0
1818
# DISASM: <hid>:
19-
# DISASM-NEXT: bc 0, 0
19+
# DISASM-NEXT: nop 0
2020
# DISASM: <_start>:
2121
# DISASM-NEXT: lgrl %r1, 0x2400
2222
# DISASM-NEXT: lgrl %r1, 0x2400

lld/test/ELF/systemz-gotent-relax.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
# DISASM: Disassembly of section .text:
3232
# DISASM: 00000000010011e0 <foo>:
33-
# DISASM-NEXT: bc 0, 0
33+
# DISASM-NEXT: nop 0
3434
# DISASM: 00000000010011e4 <hid>:
35-
# DISASM-NEXT: bc 0, 0
35+
# DISASM-NEXT: nop 0
3636
# DISASM: 00000000010011e8 <ifunc>:
3737
# DISASM-NEXT: br %r14
3838
# DISASM: 00000000010011ea <_start>:

lld/test/ELF/systemz-init-padding.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# CHECK: <.init>:
1414
# CHECK-NEXT: brasl %r14,
15-
# CHECK-NEXT: bcr 0, %r7
15+
# CHECK-NEXT: nopr %r7
1616
# CHECK-NEXT: lg %r4, 272(%r15)
1717

1818
.text

lld/test/ELF/systemz-plt.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
# DIS-NEXT: 100102c: d2 07 f0 30 10 08 mvc 48(8,%r15), 8(%r1)
4949
# DIS-NEXT: 1001032: e3 10 10 10 00 04 lg %r1, 16(%r1)
5050
# DIS-NEXT: 1001038: 07 f1 br %r1
51-
# DIS-NEXT: 100103a: 07 00 bcr 0, %r0
52-
# DIS-NEXT: 100103c: 07 00 bcr 0, %r0
53-
# DIS-NEXT: 100103e: 07 00 bcr 0, %r0
51+
# DIS-NEXT: 100103a: 07 00 nopr %r0
52+
# DIS-NEXT: 100103c: 07 00 nopr %r0
53+
# DIS-NEXT: 100103e: 07 00 nopr %r0
5454
# DIS-NEXT: 1001040: c0 10 00 00 10 54 larl %r1, 0x10030e8
5555
# DIS-NEXT: 1001046: e3 10 10 00 00 04 lg %r1, 0(%r1)
5656
# DIS-NEXT: 100104c: 07 f1 br %r1

0 commit comments

Comments
 (0)