summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2011-06-17 15:21:10 +0000
committerRoman Divacky <rdivacky@freebsd.org>2011-06-17 15:21:10 +0000
commit951cd021c10966f3ae146588b2466deaef730cb6 (patch)
treefe80428da8c7b7b5f2f8be009742d88244b24a74 /test/CodeGen
parent33ded7333d9c21bbd2f81ece2b6d297c872d38e1 (diff)
downloadllvm-951cd021c10966f3ae146588b2466deaef730cb6.tar.gz
llvm-951cd021c10966f3ae146588b2466deaef730cb6.tar.bz2
llvm-951cd021c10966f3ae146588b2466deaef730cb6.tar.xz
Fix a few places where 32bit instructions/registerset were used on PPC64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/PowerPC/ppc64-crash.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/ppc64-crash.ll b/test/CodeGen/PowerPC/ppc64-crash.ll
new file mode 100644
index 0000000000..073c322e80
--- /dev/null
+++ b/test/CodeGen/PowerPC/ppc64-crash.ll
@@ -0,0 +1,14 @@
+; RUN: llc %s -o -
+
+; ModuleID = 'undo.c'
+target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
+target triple = "powerpc64-unknown-freebsd"
+
+%struct.__sFILE = type {}
+%struct.pos_T = type { i64 }
+
+; check that we're not copying stuff between R and X registers
+define internal void @serialize_pos(%struct.pos_T* byval %pos, %struct.__sFILE* %fp) nounwind {
+entry:
+ ret void
+}