llvm.org GIT mirror llvm / 15914b5
[PowerPC] Add a regression test for r225251 In r225251, I removed an old entry from the README.txt file. While there are several contributing factors (including pieces in Clang's ABI code), upon further reflection, the backend part deserves a regression test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225268 91177308-0d34-0410-b5e6-96231b3b80d8 Hal Finkel 5 years ago
1 changed file(s) with 23 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc -mcpu=ppc64 < %s | FileCheck %s
1 target datalayout = "E-m:e-i64:64-n32:64"
2 target triple = "powerpc64-unknown-linux-gnu"
3
4 ; Function Attrs: nounwind
5 define void @bar() #0 {
6 entry:
7 tail call void @xxx([2 x i64] [i64 4607182418800017408, i64 4611686018427387904]) #0
8 ret void
9
10 ; CHECK-LABEL: @bar
11 ; CHECK-DAG: li [[REG1:[0-9]+]], 1023
12 ; CHECK-DAG: li [[REG2:[0-9]+]], {{1$}}
13 ; CHECK-DAG: sldi 3, [[REG1]], 52
14 ; CHECK-DAG: sldi 4, [[REG2]], 62
15 ; CHECK: bl xxx
16 ; CHECK: blr
17 }
18
19 declare void @xxx([2 x i64])
20
21 attributes #0 = { nounwind }
22