|
1 | 1 | ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2 |
| -; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw,+avx512vl | FileCheck %s |
3 |
| -; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw,+avx512vl,-evex512 | FileCheck %s |
| 2 | +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw,+avx512vl | FileCheck %s --check-prefixes=CHECK,EVEX256 |
| 3 | +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw,+avx512vl,-evex512 | FileCheck %s --check-prefixes=CHECK,EVEX512 |
4 | 4 |
|
5 | 5 | ; 256-bit
|
6 | 6 |
|
@@ -236,3 +236,34 @@ define <8 x i16> @vpmullw128_test(<8 x i16> %i, <8 x i16> %j) {
|
236 | 236 | ret <8 x i16> %x
|
237 | 237 | }
|
238 | 238 |
|
| 239 | +define i16 @PR90356(<16 x i1> %a) { |
| 240 | +; EVEX256-LABEL: PR90356: |
| 241 | +; EVEX256: # %bb.0: |
| 242 | +; EVEX256-NEXT: vpsllw $7, %xmm0, %xmm0 |
| 243 | +; EVEX256-NEXT: vpmovb2m %xmm0, %k1 |
| 244 | +; EVEX256-NEXT: vpternlogd $255, %zmm0, %zmm0, %zmm0 {%k1} {z} |
| 245 | +; EVEX256-NEXT: movb $63, %al |
| 246 | +; EVEX256-NEXT: kmovd %eax, %k1 |
| 247 | +; EVEX256-NEXT: vpexpandq %zmm0, %zmm0 {%k1} {z} |
| 248 | +; EVEX256-NEXT: vptestmd %zmm0, %zmm0, %k0 |
| 249 | +; EVEX256-NEXT: kmovd %k0, %eax |
| 250 | +; EVEX256-NEXT: # kill: def $ax killed $ax killed $eax |
| 251 | +; EVEX256-NEXT: vzeroupper |
| 252 | +; EVEX256-NEXT: retq |
| 253 | +; |
| 254 | +; EVEX512-LABEL: PR90356: |
| 255 | +; EVEX512: # %bb.0: |
| 256 | +; EVEX512-NEXT: vpsllw $7, %xmm0, %xmm0 |
| 257 | +; EVEX512-NEXT: vpmovb2m %xmm0, %k0 |
| 258 | +; EVEX512-NEXT: vpmovm2w %k0, %ymm0 |
| 259 | +; EVEX512-NEXT: vpxor %xmm1, %xmm1, %xmm1 |
| 260 | +; EVEX512-NEXT: vpblendd {{.*#+}} ymm0 = ymm0[0,1,2,3,4,5],ymm1[6,7] |
| 261 | +; EVEX512-NEXT: vpmovw2m %ymm0, %k0 |
| 262 | +; EVEX512-NEXT: kmovd %k0, %eax |
| 263 | +; EVEX512-NEXT: # kill: def $ax killed $ax killed $eax |
| 264 | +; EVEX512-NEXT: vzeroupper |
| 265 | +; EVEX512-NEXT: retq |
| 266 | + %1 = shufflevector <16 x i1> %a, <16 x i1> zeroinitializer, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 28, i32 29, i32 30, i32 31> |
| 267 | + %2 = bitcast <16 x i1> %1 to i16 |
| 268 | + ret i16 %2 |
| 269 | +} |
0 commit comments