1 ; RUN: llc -O3 -mtriple=powerpc-unknown-linux-gnu -mcpu=e500 -mattr=spe < %s | FileCheck %s
3 ; PowerPC SPE is a rare in-tree target that has the FP_TO_SINT node marked
6 ; Verify that fptosi(42.1) isn't simplified when the rounding mode is
8 ; Verify that no gross errors happen.
11 define i32 @f20(double %a) {
13 %result = call i32 @llvm.experimental.constrained.fptosi.i32.f64(double 42.1,
14 metadata !"fpexcept.strict")
18 @llvm.fp.env = thread_local global i8 zeroinitializer, section "llvm.metadata"
19 declare i32 @llvm.experimental.constrained.fptosi.i32.f64(double, metadata)