1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add a test for constant folding of bitcast to/from floating point.

llvm-svn: 32446
This commit is contained in:
Reid Spencer 2006-12-11 21:25:10 +00:00
parent 6567a0ac08
commit 3991c4af05

View File

@ -0,0 +1,18 @@
; RUN: llvm-as < %s | 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)
}