summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/storetrunc-fp.ll
blob: 710a9907e0183df2b34c95601ecd1a6eb8f76dea (plain)
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
}