xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/complex-fca.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine void @ccosl({ x86_fp80, x86_fp80 }* noalias sret %agg.result, { x86_fp80, x86_fp80 } %z) nounwind {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker  %z8 = extractvalue { x86_fp80, x86_fp80 } %z, 0
6*9880d681SAndroid Build Coastguard Worker  %z9 = extractvalue { x86_fp80, x86_fp80 } %z, 1
7*9880d681SAndroid Build Coastguard Worker  %0 = fsub x86_fp80 0xK80000000000000000000, %z9
8*9880d681SAndroid Build Coastguard Worker  %insert = insertvalue { x86_fp80, x86_fp80 } undef, x86_fp80 %0, 0
9*9880d681SAndroid Build Coastguard Worker  %insert7 = insertvalue { x86_fp80, x86_fp80 } %insert, x86_fp80 %z8, 1
10*9880d681SAndroid Build Coastguard Worker  call void @ccoshl({ x86_fp80, x86_fp80 }* noalias sret %agg.result, { x86_fp80, x86_fp80 } %insert7) nounwind
11*9880d681SAndroid Build Coastguard Worker  ret void
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: ccosl:
15*9880d681SAndroid Build Coastguard Worker; CHECK:         movl    {{[0-9]+}}(%esp), %[[sret_reg:[^ ]+]]
16*9880d681SAndroid Build Coastguard Worker; CHECK:         movl    %[[sret_reg]], (%esp)
17*9880d681SAndroid Build Coastguard Worker; CHECK:         calll   {{.*ccoshl.*}}
18*9880d681SAndroid Build Coastguard Worker; CHECK:         movl    %[[sret_reg]], %eax
19*9880d681SAndroid Build Coastguard Worker; CHECK:         retl
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerdeclare void @ccoshl({ x86_fp80, x86_fp80 }* noalias sret, { x86_fp80, x86_fp80 }) nounwind
22