xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/storetrunc-fp.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 | not grep flds
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine void @foo(x86_fp80 %a, x86_fp80 %b, float* %fp) {
4*9880d681SAndroid Build Coastguard Worker	%c = fadd x86_fp80 %a, %b
5*9880d681SAndroid Build Coastguard Worker	%d = fptrunc x86_fp80 %c to float
6*9880d681SAndroid Build Coastguard Worker	store float %d, float* %fp
7*9880d681SAndroid Build Coastguard Worker	ret void
8*9880d681SAndroid Build Coastguard Worker}
9