mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
12 lines
306 B
LLVM
12 lines
306 B
LLVM
|
; RUN: llc < %s -march=arm64 | FileCheck %s
|
||
|
|
||
|
define float @fcvtxn(double %a) {
|
||
|
; CHECK-LABEL: fcvtxn:
|
||
|
; CHECK: fcvtxn s0, d0
|
||
|
; CHECK-NEXT: ret
|
||
|
%vcvtxd.i = tail call float @llvm.arm64.sisd.fcvtxn(double %a) nounwind
|
||
|
ret float %vcvtxd.i
|
||
|
}
|
||
|
|
||
|
declare float @llvm.arm64.sisd.fcvtxn(double) nounwind readnone
|