projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add more PPC floating-point conversion instructions
[oota-llvm.git]
/
test
/
CodeGen
/
PowerPC
/
stfiwx-2.ll
1
; RUN: llc < %s -march=ppc32 -mcpu=g5 | FileCheck %s
2
3
define void @test(float %F, i8* %P) {
4
%I = fptosi float %F to i32
5
%X = trunc i32 %I to i8
6
store i8 %X, i8* %P
7
ret void
8
; CHECK: fctiwz 0, 1
9
; CHECK: stfiwx 0, 0, 4
10
; CHECK: lwz 4, 12(1)
11
; CHECK: stb 4, 0(3)
12
; CHECK: blr
13
}
14