mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
c2ec2baf3d
representable to use hex format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41722 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
329 B
LLVM
19 lines
329 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
|
|
|
|
int %test1() {
|
|
ret int bitcast(float 0x400D9999A0000000 to int)
|
|
}
|
|
|
|
float %test2() {
|
|
ret float bitcast(int 17 to float)
|
|
}
|
|
|
|
long %test3() {
|
|
ret long bitcast (double 0x400921FB4D12D84A to long)
|
|
}
|
|
|
|
double %test4() {
|
|
ret double bitcast (long 42 to double)
|
|
}
|
|
|