summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/illegal-element-type.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-30 19:09:17 +0000
committerDan Gohman <gohman@apple.com>2007-07-30 19:09:17 +0000
commitbe444ed6dbc2a6f36feab84b527a21aa0df9f808 (patch)
tree32e7ca71cbd644ba0e8354d9c7432f71b44f82aa /test/CodeGen/PowerPC/illegal-element-type.ll
parent45c8388e2a94502ded17dc493fe3fb10b04ce439 (diff)
downloadllvm-be444ed6dbc2a6f36feab84b527a21aa0df9f808.tar.gz
llvm-be444ed6dbc2a6f36feab84b527a21aa0df9f808.tar.bz2
llvm-be444ed6dbc2a6f36feab84b527a21aa0df9f808.tar.xz
Fix a bug in getCopyFromParts turned up in the testcase for PR1132.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/illegal-element-type.ll')
-rw-r--r--test/CodeGen/PowerPC/illegal-element-type.ll23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/illegal-element-type.ll b/test/CodeGen/PowerPC/illegal-element-type.ll
new file mode 100644
index 0000000000..54a06656b1
--- /dev/null
+++ b/test/CodeGen/PowerPC/illegal-element-type.ll
@@ -0,0 +1,23 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3
+
+define void @foo() {
+entry:
+ br label %bb
+
+bb: ; preds = %bb, %entry
+ br i1 false, label %bb26, label %bb
+
+bb19: ; preds = %bb26
+ ret void
+
+bb26: ; preds = %bb
+ br i1 false, label %bb30, label %bb19
+
+bb30: ; preds = %bb26
+ br label %bb45
+
+bb45: ; preds = %bb45, %bb30
+ %V.0 = phi <8 x i16> [ %tmp42, %bb45 ], [ zeroinitializer, %bb30 ] ; <<8 x i16>> [#uses=1]
+ %tmp42 = mul <8 x i16> zeroinitializer, %V.0 ; <<8 x i16>> [#uses=1]
+ br label %bb45
+}