aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/mmx-s2v.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-07-22 18:39:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-07-22 18:39:19 +0000
commit52672b813e0e1741855c5692a84be5bc9ef5869f (patch)
tree6fefdb481e3ded49047c2b19669d4fd85b492cc9 /test/CodeGen/X86/mmx-s2v.ll
parent4e00987f09474f4e1a3bf850ec5d7a9020bf1aef (diff)
downloadexternal_llvm-52672b813e0e1741855c5692a84be5bc9ef5869f.zip
external_llvm-52672b813e0e1741855c5692a84be5bc9ef5869f.tar.gz
external_llvm-52672b813e0e1741855c5692a84be5bc9ef5869f.tar.bz2
Fix PR2574: implement v2f32 scalar_to_vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/mmx-s2v.ll')
-rw-r--r--test/CodeGen/X86/mmx-s2v.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/mmx-s2v.ll b/test/CodeGen/X86/mmx-s2v.ll
new file mode 100644
index 0000000..4ec2403
--- /dev/null
+++ b/test/CodeGen/X86/mmx-s2v.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx
+; PR2574
+
+define void @entry(i32 %m_task_id, i32 %start_x, i32 %end_x) {; <label>:0
+ br i1 true, label %bb.nph, label %._crit_edge
+
+bb.nph: ; preds = %bb.nph, %0
+ %t2206f2.0 = phi <2 x float> [ %2, %bb.nph ], [ undef, %0 ] ; <<2 x float>> [#uses=1]
+ insertelement <2 x float> %t2206f2.0, float 0.000000e+00, i32 0 ; <<2 x float>>:1 [#uses=1]
+ insertelement <2 x float> %1, float 0.000000e+00, i32 1 ; <<2 x float>>:2 [#uses=1]
+ br label %bb.nph
+
+._crit_edge: ; preds = %0
+ ret void
+}