llvm-for-llvmta/test/CodeGen/Generic/storetrunc-fp.ll

9 lines
168 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; 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
}