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

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