46 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=aarch64-unknown-unknown < %s | FileCheck %s3 4define float @trunc_unsigned_f32(float %x) #0 {5; CHECK-LABEL: trunc_unsigned_f32:6; CHECK: // %bb.0:7; CHECK-NEXT: frintz s0, s08; CHECK-NEXT: ret9 %i = fptoui float %x to i3210 %r = uitofp i32 %i to float11 ret float %r12}13 14define double @trunc_unsigned_f64(double %x) #0 {15; CHECK-LABEL: trunc_unsigned_f64:16; CHECK: // %bb.0:17; CHECK-NEXT: frintz d0, d018; CHECK-NEXT: ret19 %i = fptoui double %x to i6420 %r = uitofp i64 %i to double21 ret double %r22}23 24define float @trunc_signed_f32(float %x) #0 {25; CHECK-LABEL: trunc_signed_f32:26; CHECK: // %bb.0:27; CHECK-NEXT: frintz s0, s028; CHECK-NEXT: ret29 %i = fptosi float %x to i3230 %r = sitofp i32 %i to float31 ret float %r32}33 34define double @trunc_signed_f64(double %x) #0 {35; CHECK-LABEL: trunc_signed_f64:36; CHECK: // %bb.0:37; CHECK-NEXT: frintz d0, d038; CHECK-NEXT: ret39 %i = fptosi double %x to i6440 %r = sitofp i64 %i to double41 ret double %r42}43 44attributes #0 = { "no-signed-zeros-fp-math"="true" }45 46