mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
19 lines
290 B
LLVM
19 lines
290 B
LLVM
|
; 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)
|
||
|
}
|
||
|
|