Skip to content

Commit

Permalink
[X86] Update fast-isel test cases for _mm256_mask_cvtepi16_epi8 to ma…
Browse files Browse the repository at this point in the history
…tch clang r332738.

llvm-svn: 332740
  • Loading branch information
topperc committed May 18, 2018
1 parent e49374d commit fdde9f3
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions llvm/test/CodeGen/X86/avx512bwvl-intrinsics-fast-isel.ll
Original file line number Diff line number Diff line change
Expand Up @@ -833,26 +833,22 @@ entry:
define <2 x i64> @test_mm256_mask_cvtepi16_epi8(<2 x i64> %__O, i16 zeroext %__M, <4 x i64> %__A) {
; X32-LABEL: test_mm256_mask_cvtepi16_epi8:
; X32: # %bb.0: # %entry
; X32-NEXT: movzwl {{[0-9]+}}(%esp), %eax
; X32-NEXT: movzbl %al, %eax
; X32-NEXT: kmovd %eax, %k1
; X32-NEXT: kmovw {{[0-9]+}}(%esp), %k1
; X32-NEXT: vpmovwb %ymm1, %xmm0 {%k1}
; X32-NEXT: vzeroupper
; X32-NEXT: retl
;
; X64-LABEL: test_mm256_mask_cvtepi16_epi8:
; X64: # %bb.0: # %entry
; X64-NEXT: movzbl %dil, %eax
; X64-NEXT: kmovd %eax, %k1
; X64-NEXT: kmovd %edi, %k1
; X64-NEXT: vpmovwb %ymm1, %xmm0 {%k1}
; X64-NEXT: vzeroupper
; X64-NEXT: retq
entry:
%conv1.i = and i16 %__M, 255
%0 = bitcast <4 x i64> %__A to <16 x i16>
%conv.i.i = trunc <16 x i16> %0 to <16 x i8>
%1 = bitcast <2 x i64> %__O to <16 x i8>
%2 = bitcast i16 %conv1.i to <16 x i1>
%2 = bitcast i16 %__M to <16 x i1>
%3 = select <16 x i1> %2, <16 x i8> %conv.i.i, <16 x i8> %1
%4 = bitcast <16 x i8> %3 to <2 x i64>
ret <2 x i64> %4
Expand All @@ -861,25 +857,21 @@ entry:
define <2 x i64> @test_mm256_maskz_cvtepi16_epi8(i16 zeroext %__M, <4 x i64> %__A) {
; X32-LABEL: test_mm256_maskz_cvtepi16_epi8:
; X32: # %bb.0: # %entry
; X32-NEXT: movzwl {{[0-9]+}}(%esp), %eax
; X32-NEXT: movzbl %al, %eax
; X32-NEXT: kmovd %eax, %k1
; X32-NEXT: kmovw {{[0-9]+}}(%esp), %k1
; X32-NEXT: vpmovwb %ymm0, %xmm0 {%k1} {z}
; X32-NEXT: vzeroupper
; X32-NEXT: retl
;
; X64-LABEL: test_mm256_maskz_cvtepi16_epi8:
; X64: # %bb.0: # %entry
; X64-NEXT: movzbl %dil, %eax
; X64-NEXT: kmovd %eax, %k1
; X64-NEXT: kmovd %edi, %k1
; X64-NEXT: vpmovwb %ymm0, %xmm0 {%k1} {z}
; X64-NEXT: vzeroupper
; X64-NEXT: retq
entry:
%conv1.i = and i16 %__M, 255
%0 = bitcast <4 x i64> %__A to <16 x i16>
%conv.i.i = trunc <16 x i16> %0 to <16 x i8>
%1 = bitcast i16 %conv1.i to <16 x i1>
%1 = bitcast i16 %__M to <16 x i1>
%2 = select <16 x i1> %1, <16 x i8> %conv.i.i, <16 x i8> zeroinitializer
%3 = bitcast <16 x i8> %2 to <2 x i64>
ret <2 x i64> %3
Expand Down

0 comments on commit fdde9f3

Please sign in to comment.