mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
03703f0817
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35895 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
368 B
LLVM
20 lines
368 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis -o /dev/null &&
|
|
; 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)
|
|
}
|
|
|