mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 22:55:57 +00:00
9 lines
177 B
LLVM
9 lines
177 B
LLVM
|
; RUN: llvm-as < %s | llc
|
||
|
|
||
|
define void @foo(double %a, double %b, float* %fp) {
|
||
|
%c = add double %a, %b
|
||
|
%d = fptrunc double %c to float
|
||
|
store float %d, float* %fp
|
||
|
ret void
|
||
|
}
|