[llvm-commits] CVS: llvm/test/Integer/fold-fpcast_bt.ll undefined_bt.ll
Zhou Sheng
zhousheng00 at gmail.com
Fri Jan 19 06:31:15 PST 2007
Changes in directory llvm/test/Integer:
fold-fpcast_bt.ll updated: 1.1 -> 1.2
undefined_bt.ll updated: 1.1 -> 1.2
---
Log message:
Cover non-byte-width BATs situation.
---
Diffs of the changes: (+21 -6)
fold-fpcast_bt.ll | 15 +++++++++++++++
undefined_bt.ll | 12 ++++++------
2 files changed, 21 insertions(+), 6 deletions(-)
Index: llvm/test/Integer/fold-fpcast_bt.ll
diff -u llvm/test/Integer/fold-fpcast_bt.ll:1.1 llvm/test/Integer/fold-fpcast_bt.ll:1.2
--- llvm/test/Integer/fold-fpcast_bt.ll:1.1 Tue Jan 16 12:08:22 2007
+++ llvm/test/Integer/fold-fpcast_bt.ll Fri Jan 19 08:30:59 2007
@@ -16,3 +16,18 @@
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: llvm/test/Integer/undefined_bt.ll
diff -u llvm/test/Integer/undefined_bt.ll:1.1 llvm/test/Integer/undefined_bt.ll:1.2
--- llvm/test/Integer/undefined_bt.ll:1.1 Tue Jan 16 12:08:22 2007
+++ llvm/test/Integer/undefined_bt.ll Fri Jan 19 08:30:59 2007
@@ -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
}
More information about the llvm-commits
mailing list