[llvm-commits] CVS: llvm/test/Regression/Jello/test-cast.ll test-fp.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 6 12:58:01 PST 2003
Changes in directory llvm/test/Regression/Jello:
test-cast.ll updated: 1.1 -> 1.2
test-fp.ll updated: 1.2 -> 1.3
---
Log message:
Test much more thoroughly
---
Diffs of the changes:
Index: llvm/test/Regression/Jello/test-cast.ll
diff -u llvm/test/Regression/Jello/test-cast.ll:1.1 llvm/test/Regression/Jello/test-cast.ll:1.2
--- llvm/test/Regression/Jello/test-cast.ll:1.1 Sun Dec 15 01:55:43 2002
+++ llvm/test/Regression/Jello/test-cast.ll Mon Jan 6 12:56:56 2003
@@ -1,7 +1,42 @@
int %main() {
+ ; Identity casts...
+ cast long 0 to long
+
+ ; cast bool to ...
+ cast bool true to bool
cast bool true to int
+
+ ; cast sbyte to ...
+ cast sbyte 0 to sbyte
+ cast sbyte 4 to short
+ cast sbyte 4 to double
+
+ ; cast short to ...
+ cast short 0 to short
+ cast short 0 to double
+
+ ; cast int to ...
cast int 6 to bool
+ cast int 6 to short
+ cast int 0 to int
+ cast int 0 to double
+
+ ; cast float to ...
+ cast float 0.0 to float
+ cast float 0.0 to double
+
+ ; cast double to ...
+ cast double 0.0 to sbyte
+ cast double 0.0 to ubyte
+ cast double 0.0 to short
+ cast double 0.0 to ushort
+ cast double 0.0 to int
+ cast double 0.0 to uint
+ cast double 0.0 to long
+ cast double 0.0 to ulong
+ cast double 0.0 to float
+ cast double 0.0 to double
ret int 0
}
Index: llvm/test/Regression/Jello/test-fp.ll
diff -u llvm/test/Regression/Jello/test-fp.ll:1.2 llvm/test/Regression/Jello/test-fp.ll:1.3
--- llvm/test/Regression/Jello/test-fp.ll:1.2 Sat Dec 28 14:00:47 2002
+++ llvm/test/Regression/Jello/test-fp.ll Mon Jan 6 12:56:56 2003
@@ -5,14 +5,16 @@
%W = sub double %V, %V
%X = mul double %W, %W
%Y = div double %X, %X
- %Z = rem double %Y, %Y
+ ;%Z = rem double %Y, %Y
+ %Z = div double %Y, %W
%Q = add double %Z, %Arg
- store double %Q, double* %DP
+ %R = cast double %Q to double
+ store double %R, double* %DP
ret double %Z
}
int %main() {
%X = alloca double
- call double %test(double* %X, double 1.0)
+ call double %test(double* %X, double 2.0)
ret int 0
}
More information about the llvm-commits
mailing list