aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-19 05:46:51 +0000
committerChris Lattner <sabre@nondot.org>2006-03-19 05:46:51 +0000
commit7ca9777e08f5d74a0d836089f9f7e68e273d2aa5 (patch)
tree7e1f3d7ca39ae46b4705cd59edbbc8db156815d9
parent74881908fec5de98175d41d6fa065971736b2119 (diff)
add a new testcase. This insertelement should be a noop on SSE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26859 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/Generic/vector.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/vector.ll b/test/CodeGen/Generic/vector.ll
index a015e6fd1c..277110bebe 100644
--- a/test/CodeGen/Generic/vector.ll
+++ b/test/CodeGen/Generic/vector.ll
@@ -79,6 +79,12 @@ void %test_variable_buildvector(float %F, %f4 *%S) {
ret void
}
+void %test_scalar_to_vector(float %F, %f4 *%S) {
+ %R = insertelement %f4 undef, float %F, uint 0 ;; R = scalar_to_vector F
+ store %f4 %R, %f4 *%S
+ ret void
+}
+
;;; TEST IMPORTANT IDIOMS
void %splat(%f4* %P, %f4* %Q, float %X) {