llvm.org GIT mirror llvm / release_24 test / CodeGen / PowerPC / stfiwx-2.ll
release_24

Tree @release_24 (Download .tar.gz)

stfiwx-2.ll @release_24raw · history · blame

; 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
}