28 lines · plain
1; RUN: llc -mtriple=x86_64-pc-windows-msvc < %s | FileCheck %s2 3; Test 1st and 2nd arguments passed in XMM0 and XMM1.4; Test 7nd argument passed by reference in stack: 56(%rsp).5define x86_vectorcallcc <4 x float> @test_m128_7(<4 x float> %a, <4 x float> %b, <4 x float> %c, <4 x float> %d, <4 x float> %e, <4 x float> %f, <4 x float> %g) #0 {6 ; CHECK-LABEL: test_m128_7@@112:7 ; CHECK: movq 56(%rsp), %rax8 ; CHECK: vaddps %xmm1, %xmm0, %xmm09 ; CHECK: vsubps (%rax), %xmm0, %xmm010 %add.i = fadd <4 x float> %a, %b11 %sub.i = fsub <4 x float> %add.i, %g12 ret <4 x float> %sub.i13}14 15; Test 1st and 2nd arguments passed in YMM0 and YMM1.16; Test 7nd argument passed by reference in stack: 56(%rsp).17define x86_vectorcallcc <8 x float> @test_m256_7(<8 x float> %a, <8 x float> %b, <8 x float> %c, <8 x float> %d, <8 x float> %e, <8 x float> %f, <8 x float> %g) #0 {18 ; CHECK-LABEL: test_m256_7@@224:19 ; CHECK: movq 56(%rsp), %rax20 ; CHECK: vaddps %ymm1, %ymm0, %ymm021 ; CHECK: vsubps (%rax), %ymm0, %ymm022 %add.i = fadd <8 x float> %a, %b23 %sub.i = fsub <8 x float> %add.i, %g24 ret <8 x float> %sub.i25}26 27attributes #0 = { nounwind "target-cpu"="core-avx2" }28