Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76d30e2

Browse files
author
git apple-llvm automerger
committed
Merge commit '0cc124c186a5' from llvm.org/master into apple/master
2 parents adc1c52 + 0cc124c commit 76d30e2

File tree

1 file changed

+34
-42
lines changed

1 file changed

+34
-42
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,35 @@
1-
# RUN: llvm-mc -triple=powerpc64le-unknown-linux -filetype=obj %s -o %t.o
2-
# RUN: llvm-objdump -d %t.o | FileCheck %s
3-
4-
# RUN: llvm-mc -triple=powerpc64-unknown-linux -filetype=obj %s -o %t.o
5-
# RUN: llvm-objdump -d %t.o | FileCheck %s
6-
7-
# RUN: llvm-mc -triple=powerpc-unknown-linux -filetype=obj %s -o %t.o
8-
# RUN: llvm-objdump -d %t.o | FileCheck %s
9-
10-
# CHECK: {{0*}}00000000 <callee_back>:
11-
# CHECK: 18: {{.*}} bl .-24
12-
# CHECK: 20: {{.*}} bl .+16
13-
# CHECK: {{0*}}00000030 <callee_forward>:
14-
15-
.text
16-
.global caller
17-
.type caller,@function
18-
.type callee_forward,@function
19-
.type callee_back,@function
20-
21-
.p2align 4
22-
callee_back:
23-
li 3, 55
24-
blr
25-
26-
.p2align 4
27-
caller:
28-
.Lgep:
29-
addis 2, 12, .TOC.-.Lgep@ha
30-
addi 2, 2, .TOC.-.Lgep@l
31-
.Llep:
32-
.localentry caller, .Llep-.Lgep
33-
bl callee_back
34-
mr 31, 3
35-
bl callee_forward
36-
add 3, 3, 31
37-
blr
38-
39-
.p2align 4
40-
callee_forward:
41-
li 3, 66
42-
blr
1+
# RUN: llvm-mc -triple=powerpc -filetype=obj %s -o %t.32.o
2+
# RUN: llvm-objdump -d --no-show-raw-insn %t.32.o | FileCheck --check-prefixes=ELF32,CHECK %s
433

4+
# RUN: llvm-mc -triple=powerpc64le -filetype=obj %s -o %t.64.o
5+
# RUN: llvm-objdump -d --no-show-raw-insn %t.64.o | FileCheck --check-prefixes=ELF64,CHECK %s
6+
7+
# RUN: llvm-mc -triple=powerpc64 -filetype=obj %s -o %t.64.o
8+
# RUN: llvm-objdump -d --no-show-raw-insn %t.64.o | FileCheck --check-prefixes=ELF64,CHECK %s
9+
10+
# CHECK-LABEL: <bl>:
11+
# ELF32-NEXT: bl .-4
12+
# ELF64-NEXT: bl .-4
13+
# CHECK-NEXT: bl .+0
14+
# CHECK-NEXT: bl .+4
15+
16+
bl:
17+
bl .-4
18+
bl .
19+
bl .+4
20+
21+
# CHECK-LABEL: <b>:
22+
# CHECK-NEXT: b .+67108860
23+
# CHECK-NEXT: b .+0
24+
# CHECK-NEXT: b .+4
25+
26+
b:
27+
b .-4
28+
b .
29+
b .+4
30+
31+
# CHECK-LABEL: <bt>:
32+
# CHECK-NEXT: bt 2, .+65532
33+
34+
bt:
35+
bt 2, .-4

0 commit comments

Comments
 (0)