Cover non-byte-width BATs situation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zhou Sheng 2007-01-19 14:30:59 +00:00
parent 4da6420a07
commit 9160a841ac
2 changed files with 21 additions and 6 deletions

View 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)
}

View 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
}