Cover non-byte-width BATs situation.
authorZhou Sheng <zhousheng00@gmail.com>
Fri, 19 Jan 2007 14:30:59 +0000 (14:30 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Fri, 19 Jan 2007 14:30:59 +0000 (14:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33356 91177308-0d34-0410-b5e6-96231b3b80d8

test/Integer/fold-fpcast_bt.ll
test/Integer/undefined_bt.ll

index 71823ab14614a74c01b9a15e086722a1e364e79c..d1453c4ec7a4116df0581bbb7ea9fc1fd7573310 100644 (file)
@@ -16,3 +16,18 @@ define double %test4() {
   ret double bitcast (i64 42 to double)
 }
 
+define i30 %test5() {
+  ret i30 fptoui(float 3.7 to i30)
+}
+
+define float %test6() {
+  ret float uitofp(i30 17 to float)
+}
+
+define i6 %test7() {
+  ret i6 bitcast (double 3.1415926 to i6)
+}
+
+define double %test8() {
+  ret double bitcast (i9 42 to double)
+}
index 3a413d409f577c438db4dd9a344c985baf617da0..94f51905cda11041418cc79ce1f9654d3342db47 100644 (file)
@@ -3,17 +3,17 @@
 ; RUN: diff %t1.ll %t2.ll
 
 
-%X = global i32 undef
+%X = global i31 undef
 
 implementation
 
 declare i32 "atoi"(i8 *)
 
-define i32 %test() {
-       ret i32 undef
+define i63 %test() {
+       ret i63 undef
 }
 
-define i32 %test2() {
-       %X = add i32 undef, 1
-       ret i32 %X
+define i31 %test2() {
+       %X = add i31 undef, 1
+       ret i31 %X
 }