summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/storetrunc-fp.ll
blob: 0f7bb0b85ee913a21082adb89d095ff5651a222e (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | llc

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