mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
424ebf9c39
llvm-svn: 35988
20 lines
370 B
LLVM
20 lines
370 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis -o /dev/null -f &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
|
|
|
|
int %test1() {
|
|
ret int bitcast(float 3.7 to int)
|
|
}
|
|
|
|
float %test2() {
|
|
ret float bitcast(int 17 to float)
|
|
}
|
|
|
|
long %test3() {
|
|
ret long bitcast (double 3.1415926 to long)
|
|
}
|
|
|
|
double %test4() {
|
|
ret double bitcast (long 42 to double)
|
|
}
|
|
|