diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-01-06 16:46:37 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-01-06 16:46:37 +0000 |
commit | ef35ed08923902a37335b948e183a97bfb8a7bea (patch) | |
tree | 4be38dd7815460f6c47fcf8cece049cb8fad67de /llvm/test/CodeGen/PowerPC | |
parent | 1445553474d9bd938608e60a961f9f5c2d68f2d2 (diff) | |
download | bcm5719-llvm-ef35ed08923902a37335b948e183a97bfb8a7bea.tar.gz bcm5719-llvm-ef35ed08923902a37335b948e183a97bfb8a7bea.zip |
[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.
llvm-svn: 225268
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll b/llvm/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll new file mode 100644 index 00000000000..fd430a68e78 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll @@ -0,0 +1,23 @@ +; RUN: llc -mcpu=ppc64 < %s | FileCheck %s +target datalayout = "E-m:e-i64:64-n32:64" +target triple = "powerpc64-unknown-linux-gnu" + +; Function Attrs: nounwind +define void @bar() #0 { +entry: + tail call void @xxx([2 x i64] [i64 4607182418800017408, i64 4611686018427387904]) #0 + ret void + +; CHECK-LABEL: @bar +; CHECK-DAG: li [[REG1:[0-9]+]], 1023 +; CHECK-DAG: li [[REG2:[0-9]+]], {{1$}} +; CHECK-DAG: sldi 3, [[REG1]], 52 +; CHECK-DAG: sldi 4, [[REG2]], 62 +; CHECK: bl xxx +; CHECK: blr +} + +declare void @xxx([2 x i64]) + +attributes #0 = { nounwind } + |