xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/stfiwx-2.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -mcpu=g5 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine void @test(float %F, i8* %P) {
4*9880d681SAndroid Build Coastguard Worker	%I = fptosi float %F to i32
5*9880d681SAndroid Build Coastguard Worker	%X = trunc i32 %I to i8
6*9880d681SAndroid Build Coastguard Worker	store i8 %X, i8* %P
7*9880d681SAndroid Build Coastguard Worker	ret void
8*9880d681SAndroid Build Coastguard Worker; CHECK: fctiwz 0, 1
9*9880d681SAndroid Build Coastguard Worker; CHECK: stfiwx 0, 0, 4
10*9880d681SAndroid Build Coastguard Worker; CHECK: lwz 4, 12(1)
11*9880d681SAndroid Build Coastguard Worker; CHECK: stb 4, 0(3)
12*9880d681SAndroid Build Coastguard Worker; CHECK: blr
13*9880d681SAndroid Build Coastguard Worker}
14*9880d681SAndroid Build Coastguard Worker
15