21 lines · plain
1; RUN: llc -O3 -mtriple=powerpc-unknown-linux-gnu -mcpu=e500 -mattr=spe < %s | FileCheck %s2 3; PowerPC SPE is a rare in-tree target that has the FP_TO_SINT node marked4; as Legal.5 6; Verify that fptosi(42.1) isn't simplified when the rounding mode is7; unknown.8; Verify that no gross errors happen.9; CHECK-LABEL: @f2010; COMMON: cfdctsiz11define i32 @f20(double %a) strictfp {12entry:13 %result = call i32 @llvm.experimental.constrained.fptosi.i32.f64(double 42.1,14 metadata !"fpexcept.strict")15 strictfp16 ret i32 %result17}18 19@llvm.fp.env = thread_local global i8 zeroinitializer, section "llvm.metadata"20declare i32 @llvm.experimental.constrained.fptosi.i32.f64(double, metadata)21