[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/xmm-r64.ll fabs.ll
Evan Cheng
evan.cheng at apple.com
Thu Nov 16 15:38:36 PST 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
xmm-r64.ll added (r1.1)
fabs.ll updated: 1.9 -> 1.10
---
Log message:
New test case.
---
Diffs of the changes: (+13 -2)
fabs.ll | 4 ++--
xmm-r64.ll | 11 +++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
Index: llvm/test/Regression/CodeGen/X86/xmm-r64.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/xmm-r64.ll:1.1
*** /dev/null Thu Nov 16 17:38:31 2006
--- llvm/test/Regression/CodeGen/X86/xmm-r64.ll Thu Nov 16 17:38:21 2006
***************
*** 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>)
Index: llvm/test/Regression/CodeGen/X86/fabs.ll
diff -u llvm/test/Regression/CodeGen/X86/fabs.ll:1.9 llvm/test/Regression/CodeGen/X86/fabs.ll:1.10
--- llvm/test/Regression/CodeGen/X86/fabs.ll:1.9 Tue Aug 29 17:01:39 2006
+++ llvm/test/Regression/CodeGen/X86/fabs.ll Thu Nov 16 17:38:21 2006
@@ -7,12 +7,12 @@
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
More information about the llvm-commits
mailing list