diff options
Diffstat (limited to 'test/CodeGen/AArch64/arm64-vcvtxd_f32_f64.ll')
-rw-r--r-- | test/CodeGen/AArch64/arm64-vcvtxd_f32_f64.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/arm64-vcvtxd_f32_f64.ll b/test/CodeGen/AArch64/arm64-vcvtxd_f32_f64.ll new file mode 100644 index 0000000..b29c22c --- /dev/null +++ b/test/CodeGen/AArch64/arm64-vcvtxd_f32_f64.ll @@ -0,0 +1,11 @@ +; 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.aarch64.sisd.fcvtxn(double %a) nounwind + ret float %vcvtxd.i +} + +declare float @llvm.aarch64.sisd.fcvtxn(double) nounwind readnone |