mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
13 lines
307 B
LLVM
13 lines
307 B
LLVM
|
; RUN: llc -march=mips -mattr=+single-float < %s
|
||
|
|
||
|
define void @f0() nounwind {
|
||
|
entry:
|
||
|
%b = alloca i32, align 4
|
||
|
%a = alloca float, align 4
|
||
|
store volatile i32 1, i32* %b, align 4
|
||
|
%0 = load volatile i32* %b, align 4
|
||
|
%conv = uitofp i32 %0 to float
|
||
|
store float %conv, float* %a, align 4
|
||
|
ret void
|
||
|
}
|