xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/avx-win64-args.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-pc-win32"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdeclare <8 x float> @foo(<8 x float>, i32)
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine <8 x float> @test1(<8 x float> %x, <8 x float> %y) nounwind uwtable readnone ssp {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker; CHECK: test1
9*9880d681SAndroid Build Coastguard Worker; CHECK: leaq {{.*}}, %rcx
10*9880d681SAndroid Build Coastguard Worker; CHECK: movl {{.*}}, %edx
11*9880d681SAndroid Build Coastguard Worker; CHECK: call
12*9880d681SAndroid Build Coastguard Worker; CHECK: ret
13*9880d681SAndroid Build Coastguard Worker  %x1 = fadd  <8 x float>  %x, %y
14*9880d681SAndroid Build Coastguard Worker  %call = call  <8 x float> @foo(<8 x float> %x1, i32 1) nounwind
15*9880d681SAndroid Build Coastguard Worker  %y1 = fsub  <8 x float>  %call, %y
16*9880d681SAndroid Build Coastguard Worker  ret <8 x float> %y1
17*9880d681SAndroid Build Coastguard Worker}
18*9880d681SAndroid Build Coastguard Worker
19