33 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=skx | FileCheck --check-prefix=SKX %s3 4; TODO - fix fail on KNL and move this test to avx512-insert-extract.ll5 6define zeroext i8 @test_extractelement_varible_v64i1(<64 x i8> %a, <64 x i8> %b, i32 %index) {7; SKX-LABEL: test_extractelement_varible_v64i1:8; SKX: ## %bb.0:9; SKX-NEXT: pushq %rbp10; SKX-NEXT: .cfi_def_cfa_offset 1611; SKX-NEXT: .cfi_offset %rbp, -1612; SKX-NEXT: movq %rsp, %rbp13; SKX-NEXT: .cfi_def_cfa_register %rbp14; SKX-NEXT: andq $-64, %rsp15; SKX-NEXT: subq $128, %rsp16; SKX-NEXT: ## kill: def $edi killed $edi def $rdi17; SKX-NEXT: vpcmpnleub %zmm1, %zmm0, %k018; SKX-NEXT: vpmovm2b %k0, %zmm019; SKX-NEXT: vmovdqa64 %zmm0, (%rsp)20; SKX-NEXT: andl $63, %edi21; SKX-NEXT: movzbl (%rsp,%rdi), %eax22; SKX-NEXT: andl $1, %eax23; SKX-NEXT: movq %rbp, %rsp24; SKX-NEXT: popq %rbp25; SKX-NEXT: vzeroupper26; SKX-NEXT: retq27 %t1 = icmp ugt <64 x i8> %a, %b28 %t2 = extractelement <64 x i1> %t1, i32 %index29 %res = zext i1 %t2 to i830 ret i8 %res31}32 33