llvm.org GIT mirror llvm / release_23 test / CodeGen / Generic / storetrunc-fp.ll
release_23

Tree @release_23 (Download .tar.gz)

storetrunc-fp.ll @release_23raw · history · blame

1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | llc

define void @foo(double %a, double %b, float* %fp) {
	%c = add double %a, %b
	%d = fptrunc double %c to float
	store float %d, float* %fp
	ret void
}