xref: /llvm-project/llvm/test/CodeGen/X86/bug37521.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=x86_64-- < %s | FileCheck %s
3
4@a = external dso_local global <16 x float>, align 64
5
6declare void @goo(<2 x i256>)
7
8define void @foo() #0 {
9; CHECK-LABEL: foo:
10; CHECK:       # %bb.0:
11; CHECK-NEXT:    subq $24, %rsp
12; CHECK-NEXT:    movq a+40(%rip), %r9
13; CHECK-NEXT:    movq a+32(%rip), %r8
14; CHECK-NEXT:    movq a+24(%rip), %rcx
15; CHECK-NEXT:    movq a+16(%rip), %rdx
16; CHECK-NEXT:    movq a+8(%rip), %rsi
17; CHECK-NEXT:    movq a(%rip), %rdi
18; CHECK-NEXT:    vmovaps a+48(%rip), %xmm0
19; CHECK-NEXT:    vmovups %xmm0, (%rsp)
20; CHECK-NEXT:    callq goo@PLT
21; CHECK-NEXT:    addq $24, %rsp
22; CHECK-NEXT:    retq
23  %load = load <2 x i256>, ptr @a, align 64
24  call void @goo(<2 x i256> %load)
25  ret void
26}
27
28attributes #0 = { nounwind "target-features"="+avx512bw" }
29