[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git] / test / CodeGen / PowerPC / fp-intrinsics-fptosi-legal.ll
blob98f2f36db745a2a3b5f6e488c5578b8ac31916c4
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
4 ; as Legal.
6 ; Verify that fptosi(42.1) isn't simplified when the rounding mode is
7 ; unknown.
8 ; Verify that no gross errors happen.
9 ; CHECK-LABEL: @f20
10 ; COMMON: cfdctsiz
11 define i32 @f20(double %a) {
12 entry:
13   %result = call i32 @llvm.experimental.constrained.fptosi.i32.f64(double 42.1,
14                                                metadata !"fpexcept.strict")
15   ret i32 %result
18 @llvm.fp.env = thread_local global i8 zeroinitializer, section "llvm.metadata"
19 declare i32 @llvm.experimental.constrained.fptosi.i32.f64(double, metadata)