mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 22:55:57 +00:00
9 lines
197 B
LLVM
9 lines
197 B
LLVM
|
; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s
|
||
|
|
||
|
define i32 @f1(double %d) nounwind readnone {
|
||
|
entry:
|
||
|
; CHECK: trunc.w.d $f{{[0-9]+}}, $f12
|
||
|
%conv = fptosi double %d to i32
|
||
|
ret i32 %conv
|
||
|
}
|