55 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -O3 -mtriple powerpc-ibm-aix -verify-machineinstrs < %s | FileCheck --check-prefix=32BIT %s3; RUN: llc -O3 -mtriple powerpc64-ibm-aix -verify-machineinstrs < %s | FileCheck --check-prefix=64BIT %s4 5; Function Attrs: nounwind strictfp6define i64 @tester_s(double %d) local_unnamed_addr #0 {7; 32BIT-LABEL: tester_s:8; 32BIT: # %bb.0: # %entry9; 32BIT-NEXT: xscvdpsxds 0, 110; 32BIT-NEXT: stfd 0, -8(1)11; 32BIT-NEXT: lwz 3, -8(1)12; 32BIT-NEXT: lwz 4, -4(1)13; 32BIT-NEXT: blr14;15; 64BIT-LABEL: tester_s:16; 64BIT: # %bb.0: # %entry17; 64BIT-NEXT: xscvdpsxds 0, 118; 64BIT-NEXT: stfd 0, -8(1)19; 64BIT-NEXT: ld 3, -8(1)20; 64BIT-NEXT: blr21entry:22 %conv = tail call i64 @llvm.experimental.constrained.fptosi.i64.f64(double %d, metadata !"fpexcept.ignore") #223 ret i64 %conv24}25 26; Function Attrs: nounwind strictfp27define i64 @tester_u(double %d) local_unnamed_addr #0 {28; 32BIT-LABEL: tester_u:29; 32BIT: # %bb.0: # %entry30; 32BIT-NEXT: xscvdpuxds 0, 131; 32BIT-NEXT: stfd 0, -8(1)32; 32BIT-NEXT: lwz 3, -8(1)33; 32BIT-NEXT: lwz 4, -4(1)34; 32BIT-NEXT: blr35;36; 64BIT-LABEL: tester_u:37; 64BIT: # %bb.0: # %entry38; 64BIT-NEXT: xscvdpuxds 0, 139; 64BIT-NEXT: stfd 0, -8(1)40; 64BIT-NEXT: ld 3, -8(1)41; 64BIT-NEXT: blr42entry:43 %conv = tail call i64 @llvm.experimental.constrained.fptoui.i64.f64(double %d, metadata !"fpexcept.ignore") #244 ret i64 %conv45}46 47; Function Attrs: nounwind48declare i64 @llvm.experimental.constrained.fptosi.i64.f64(double, metadata) #149declare i64 @llvm.experimental.constrained.fptoui.i64.f64(double, metadata) #150 51attributes #0 = { nounwind strictfp "target-cpu"="pwr7" }52attributes #1 = { nounwind }53 54 55