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

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
}