Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / ppc64-rel-calls.s
blob366db77197cf48324eba3df6f80459082ad03dbd
1 # REQUIRES: ppc
3 # RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t
4 # RUN: ld.lld %t -o %t2
5 # RUN: llvm-objdump -d --no-show-raw-insn %t2 | FileCheck %s
7 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t
8 # RUN: ld.lld %t -o %t2
9 # RUN: llvm-objdump -d --no-show-raw-insn %t2 | FileCheck %s
11 # CHECK: Disassembly of section .text:
12 # CHECK-EMPTY:
14 .text
15 .global _start
16 _start:
17 .Lfoo:
18 li 0,1
19 li 3,42
22 # CHECK: 10010158: li 0, 1
23 # CHECK: 1001015c: li 3, 42
24 # CHECK: 10010160: sc
26 .global bar
27 bar:
28 bl _start
29 nop
30 bl .Lfoo
31 nop
32 blr
34 # CHECK: 10010164: bl 0x10010158
35 # CHECK-NEXT: nop
36 # CHECK-NEXT: 1001016c: bl 0x10010158
37 # CHECK-NEXT: nop
38 # CHECK-NEXT: blr