File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
llvm/test/CodeGen/PowerPC Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
- ; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s
2
- target datalayout = "E-m:e-i64:64-n32:64"
3
- target triple = "powerpc64-unknown-linux-gnu"
1
+ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2
+ ; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs -mtriple=powerpc64-- < %s | FileCheck %s --check-prefixes=BE
3
+ ; RUN: llc -ppc-asm-full-reg-names -verify-machineinstrs -mtriple=powerpc64le-- < %s | FileCheck %s --check-prefixes=LE
4
4
5
- ; Function Attrs: nounwind readonly
6
- define signext i32 @test (i32* nocapture readonly %P ) #0 {
7
- entry:
8
- %0 = load i32 , i32* %P , align 4
9
- %shr = lshr i32 %0 , 24
5
+ define signext i32 @test (i32* nocapture readonly %P ) nounwind {
6
+ ; BE-LABEL: test:
7
+ ; BE: # %bb.0:
8
+ ; BE-NEXT: lbz r3, 0(r3)
9
+ ; BE-NEXT: blr
10
+ ;
11
+ ; LE-LABEL: test:
12
+ ; LE: # %bb.0:
13
+ ; LE-NEXT: lbz r3, 3(r3)
14
+ ; LE-NEXT: blr
15
+ %t0 = load i32 , i32* %P , align 4
16
+ %shr = lshr i32 %t0 , 24
10
17
ret i32 %shr
11
-
12
- ; CHECK-LABEL: @test
13
- ; CHECK: lbz 3, 0(3)
14
- ; CHECK: blr
15
18
}
16
-
17
- attributes #0 = { nounwind readonly }
18
-
You can’t perform that action at this time.
0 commit comments