aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
commit759fe02519c211ae8065d1a950635b25fad336e3 (patch)
tree6fefdb481e3ded49047c2b19669d4fd85b492cc9 /test
parent75453cdcd0b55acb8f3b0470255ecebed1d9b7b1 (diff)
downloadexternal_llvm-759fe02519c211ae8065d1a950635b25fad336e3.zip
external_llvm-759fe02519c211ae8065d1a950635b25fad336e3.tar.gz
external_llvm-759fe02519c211ae8065d1a950635b25fad336e3.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')
-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
+}