1; RUN: llc < %s | FileCheck %s
2target datalayout = "E-m:e-p:32:32-i64:64-n32"
3target triple = "powerpc-unknown-unknown"
4
5; Function Attrs: nounwind
6define i64 @testullf(float %arg) #0 {
7entry:
8  %arg.addr = alloca float, align 4
9  store float %arg, float* %arg.addr, align 4
10  %0 = load float, float* %arg.addr, align 4
11  %conv = fptoui float %0 to i64
12  ret i64 %conv
13
14; CHECK-LABEL: @testullf
15; CHECK: fctiduz [[REG1:[0-9]+]], 1
16; CHECK: stfd [[REG1]], [[OFF:[0-9]+]](1)
17; CHECK-DAG: lwz 3, [[OFF]](1)
18; CHECK-DAG: lwz 4, {{[0-9]+}}(1)
19; CHECK: blr
20}
21
22attributes #0 = { nounwind "target-cpu"="a2" }
23
24