[llvm] r225268 - [PowerPC] Add a regression test for r225251

Hal Finkel hfinkel at anl.gov
Tue Jan 6 08:46:37 PST 2015


Author: hfinkel
Date: Tue Jan  6 10:46:37 2015
New Revision: 225268

URL: http://llvm.org/viewvc/llvm-project?rev=225268&view=rev
Log:
[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.

Added:
    llvm/trunk/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll

Added: llvm/trunk/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll?rev=225268&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll (added)
+++ llvm/trunk/test/CodeGen/PowerPC/arr-fp-arg-no-copy.ll Tue Jan  6 10:46:37 2015
@@ -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 }
+





More information about the llvm-commits mailing list