From 15914b5c2244bdbda439bf2a4cab2191cc7617dc Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Tue, 6 Jan 2015 16:46:37 +0000 Subject: [PATCH] [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 --- test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll diff --git a/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll b/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll new file mode 100644 index 00000000000..fd430a68e78 --- /dev/null +++ b/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 } +