1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -ppc-asm-full-reg-names \
3 ; RUN: -mtriple=powerpc64le-unknown-linux-gnu -mattr=+altivec \
4 ; RUN: -mattr=-power8-vector -mattr=-vsx < %s 2>&1 | FileCheck %s
6 @Global = dso_local global i32 55, align 4
8 define dso_local void @test(float %0) local_unnamed_addr {
10 ; CHECK: # %bb.0: # %entry
11 ; CHECK-NEXT: fctiwz f0, f1
12 ; CHECK-NEXT: addi r3, r1, -4
13 ; CHECK-NEXT: addis r4, r2, Global@toc@ha
14 ; CHECK-NEXT: stfiwx f0, 0, r3
15 ; CHECK-NEXT: lwz r3, -4(r1)
16 ; CHECK-NEXT: stw r3, Global@toc@l(r4)
19 %1 = fptosi float %0 to i32
20 store i32 %1, ptr @Global, align 4