summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/sse1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/sse1.ll')
-rw-r--r--test/CodeGen/X86/sse1.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sse1.ll b/test/CodeGen/X86/sse1.ll
index 8ef665b755..3ab384072a 100644
--- a/test/CodeGen/X86/sse1.ll
+++ b/test/CodeGen/X86/sse1.ll
@@ -6,3 +6,9 @@ define <8 x i16> @test1(<8 x i32> %a) nounwind {
; CHECK: test1
ret <8 x i16> zeroinitializer
}
+
+define <8 x i16> @test2(<8 x i32> %a) nounwind {
+; CHECK: test2
+ %c = trunc <8 x i32> %a to <8 x i16> ; <<8 x i16>> [#uses=1]
+ ret <8 x i16> %c
+}