mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
9 lines
212 B
LLVM
9 lines
212 B
LLVM
|
; RUN: llvm-as < %s | llc -march=x86 | not grep flds
|
||
|
|
||
|
define void @foo(x86_fp80 %a, x86_fp80 %b, float* %fp) {
|
||
|
%c = add x86_fp80 %a, %b
|
||
|
%d = fptrunc x86_fp80 %c to float
|
||
|
store float %d, float* %fp
|
||
|
ret void
|
||
|
}
|