diff options
Diffstat (limited to 'llvm/test/CodeGen/AArch64')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/ftrunc.ll | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/AArch64/ftrunc.ll b/llvm/test/CodeGen/AArch64/ftrunc.ll index 788b06d8233..03284e9cc0c 100644 --- a/llvm/test/CodeGen/AArch64/ftrunc.ll +++ b/llvm/test/CodeGen/AArch64/ftrunc.ll @@ -4,7 +4,8 @@ define float @trunc_unsigned_f32(float %x) { ; CHECK-LABEL: trunc_unsigned_f32: ; CHECK: // %bb.0: -; CHECK-NEXT: frintz s0, s0 +; CHECK-NEXT: fcvtzu w8, s0 +; CHECK-NEXT: ucvtf s0, w8 ; CHECK-NEXT: ret %i = fptoui float %x to i32 %r = uitofp i32 %i to float @@ -14,7 +15,8 @@ define float @trunc_unsigned_f32(float %x) { define double @trunc_unsigned_f64(double %x) { ; CHECK-LABEL: trunc_unsigned_f64: ; CHECK: // %bb.0: -; CHECK-NEXT: frintz d0, d0 +; CHECK-NEXT: fcvtzu x8, d0 +; CHECK-NEXT: ucvtf d0, x8 ; CHECK-NEXT: ret %i = fptoui double %x to i64 %r = uitofp i64 %i to double @@ -24,7 +26,8 @@ define double @trunc_unsigned_f64(double %x) { define float @trunc_signed_f32(float %x) { ; CHECK-LABEL: trunc_signed_f32: ; CHECK: // %bb.0: -; CHECK-NEXT: frintz s0, s0 +; CHECK-NEXT: fcvtzs w8, s0 +; CHECK-NEXT: scvtf s0, w8 ; CHECK-NEXT: ret %i = fptosi float %x to i32 %r = sitofp i32 %i to float @@ -34,7 +37,8 @@ define float @trunc_signed_f32(float %x) { define double @trunc_signed_f64(double %x) { ; CHECK-LABEL: trunc_signed_f64: ; CHECK: // %bb.0: -; CHECK-NEXT: frintz d0, d0 +; CHECK-NEXT: fcvtzs x8, d0 +; CHECK-NEXT: scvtf d0, x8 ; CHECK-NEXT: ret %i = fptosi double %x to i64 %r = sitofp i64 %i to double |

