1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2 ; RUN: llc < %s -mattr=+avx512f | FileCheck %s 3 ; RUN: llc < %s -mattr=+avx512f,+avx512vl,+avx512bw,+avx512dq | FileCheck %s 4 5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 6 target triple = "x86_64-unknown-linux-gnu" 7 8 define void @test(<4x i64> %a, <4 x x86_fp80> %b, <8 x x86_fp80>* %c) local_unnamed_addr { 9 ; CHECK-LABEL: test: 10 ; CHECK: # %bb.0: 11 ; CHECK-NEXT: vpextrq $1, %xmm0, %r8 12 ; CHECK-NEXT: vmovdqa {{.*#+}} xmm1 = [2,3] 13 ; CHECK-NEXT: vmovq %xmm1, %r9 14 ; CHECK-NEXT: vextracti128 $1, %ymm0, %xmm2 15 ; CHECK-NEXT: vmovq %xmm2, %rdx 16 ; CHECK-NEXT: vpextrq $1, %xmm1, %rsi 17 ; CHECK-NEXT: vpextrq $1, %xmm2, %rax 18 ; CHECK-NEXT: vmovq %xmm0, %rcx 19 ; CHECK-NEXT: negq %rcx 20 ; CHECK-NEXT: fld1 21 ; CHECK-NEXT: fldz 22 ; CHECK-NEXT: fld %st(0) 23 ; CHECK-NEXT: fcmove %st(2), %st(0) 24 ; CHECK-NEXT: cmpq %rax, %rsi 25 ; CHECK-NEXT: fld %st(1) 26 ; CHECK-NEXT: fcmove %st(3), %st(0) 27 ; CHECK-NEXT: cmpq %rdx, %r9 28 ; CHECK-NEXT: fld %st(2) 29 ; CHECK-NEXT: fcmove %st(4), %st(0) 30 ; CHECK-NEXT: movl $1, %eax 31 ; CHECK-NEXT: cmpq %r8, %rax 32 ; CHECK-NEXT: fxch %st(3) 33 ; CHECK-NEXT: fcmove %st(4), %st(0) 34 ; CHECK-NEXT: fstp %st(4) 35 ; CHECK-NEXT: fldt {{[0-9]+}}(%rsp) 36 ; CHECK-NEXT: fstpt 70(%rdi) 37 ; CHECK-NEXT: fldt {{[0-9]+}}(%rsp) 38 ; CHECK-NEXT: fstpt 50(%rdi) 39 ; CHECK-NEXT: fldt {{[0-9]+}}(%rsp) 40 ; CHECK-NEXT: fstpt 30(%rdi) 41 ; CHECK-NEXT: fldt {{[0-9]+}}(%rsp) 42 ; CHECK-NEXT: fstpt 10(%rdi) 43 ; CHECK-NEXT: fadd %st(0), %st(0) 44 ; CHECK-NEXT: fstpt 60(%rdi) 45 ; CHECK-NEXT: fxch %st(1) 46 ; CHECK-NEXT: fadd %st(0), %st(0) 47 ; CHECK-NEXT: fstpt 40(%rdi) 48 ; CHECK-NEXT: fxch %st(1) 49 ; CHECK-NEXT: fadd %st(0), %st(0) 50 ; CHECK-NEXT: fstpt 20(%rdi) 51 ; CHECK-NEXT: fadd %st(0), %st(0) 52 ; CHECK-NEXT: fstpt (%rdi) 53 %1 = icmp eq <4 x i64> <i64 0, i64 1, i64 2, i64 3>, %a 54 %2 = select <4 x i1> %1, <4 x x86_fp80> <x86_fp80 0xK3FFF8000000000000000, x86_fp80 0xK3FFF8000000000000000, x86_fp80 0xK3FFF8000000000000000, x86_fp80 0xK3FFF8000000000000000>, <4 x x86_fp80> zeroinitializer 55 %3 = fadd <4 x x86_fp80> %2, %2 56 %4 = shufflevector <4 x x86_fp80> %3, <4 x x86_fp80> %b, <8 x i32> <i32 0, i32 4, i32 1, i32 5, i32 2, i32 6, i32 3, i32 7> 57 store <8 x x86_fp80> %4, <8 x x86_fp80>* %c, align 16 58 unreachable 59 } 60