1 ; RUN: llc -O3 -mtriple=x86_64-pc-linux < %s -stop-after=finalize-isel | FileCheck %s
3 define i32 @f20u(double %x) #0 {
4 ; CHECK-LABEL: name: f20u
5 ; CHECK: liveins: $xmm0
6 ; CHECK: [[COPY:%[0-9]+]]:fr64 = COPY $xmm0
7 ; CHECK: [[CVTTSD2SI64rr:%[0-9]+]]:gr64 = CVTTSD2SI64rr [[COPY]], implicit $mxcsr
8 ; CHECK: [[COPY1:%[0-9]+]]:gr32 = COPY [[CVTTSD2SI64rr]].sub_32bit
9 ; CHECK: $eax = COPY [[COPY1]]
12 %result = call i32 @llvm.experimental.constrained.fptoui.i32.f64(double %x, metadata !"fpexcept.strict") #0
16 attributes #0 = { strictfp }
18 declare i32 @llvm.experimental.constrained.fptoui.i32.f64(double, metadata)