new testcase

llvm-svn: 32227
This commit is contained in:
Chris Lattner 2006-12-05 18:21:52 +00:00
parent b5dee63958
commit b6e14a0e10
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
; RUN: llvm-as < %s | llc &&
; RUN: llvm-as < %s | llc -march=x86 &&
; RUN: llvm-as < %s | llc -march=x86-64
; PR1033
long %test1(double %t) {
%u = bitcast double %t to long
ret long %u
}
double %test2(long %t) {
%u = bitcast long %t to double
ret double %u
}
int %test3(float %t) {
%u = bitcast float %t to int
ret int %u
}
float %test4(int %t) {
%u = bitcast int %t to float
ret float %u
}