mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
febc7ea9bf
_test: fctiwz f0, f1 stfiwx f0, 0, r4 blr instead of: _test: fctiwz f0, f1 stfd f0, -8(r1) nop nop lwz r2, -4(r1) stb r2, 0(r4) blr The former is not correct (stores 4 bytes, not 1). llvm-svn: 46161
12 lines
278 B
LLVM
12 lines
278 B
LLVM
; This cannot be a stfiwx
|
|
; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep stb
|
|
; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | not grep stfiwx
|
|
|
|
define void @test(float %F, i8* %P) {
|
|
%I = fptosi float %F to i32
|
|
%X = trunc i32 %I to i8
|
|
store i8 %X, i8* %P
|
|
ret void
|
|
}
|
|
|