New test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-11-16 23:38:21 +00:00
parent ebf01d63b0
commit 100e78c589
2 changed files with 13 additions and 2 deletions

View File

@ -7,12 +7,12 @@ target pointersize = 32
declare float %fabsf(float)
float %fabsftest(float %X) {
float %test1(float %X) {
%Y = call float %fabsf(float %X)
ret float %Y
}
double %fabstest2(double %X) {
double %test2(double %X) {
%Y = setge double %X, -0.0
%Z = sub double -0.0, %X
%Q = select bool %Y, double %X, double %Z

View File

@ -0,0 +1,11 @@
; RUN: llvm-as < %s | llc -march=x86-64
<4 x int> %test() {
%tmp1039 = call <4 x int> %llvm.x86.sse2.psll.d( <4 x int> zeroinitializer, <4 x int> zeroinitializer ) ; <<4 x int>> [#uses=1]
%tmp1040 = cast <4 x int> %tmp1039 to <2 x long> ; <<2 x long>> [#uses=1]
%tmp1048 = add <2 x long> %tmp1040, zeroinitializer ; <<2 x long>> [#uses=1]
%tmp1048 = cast <2 x long> %tmp1048 to <4 x int> ; <<4 x int>> [#uses=1]
ret <4 x int> %tmp1048
}
declare <4 x int> %llvm.x86.sse2.psll.d(<4 x int>, <4 x int>)