aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr14204.ll
blob: 42e362bf3b9b48f1c37d1c0a2bc84f88b7fda865 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=core-avx2 | FileCheck %s

; FIXME: vpmovsxwd should be generated instead of vpmovzxwd followed by
; SLL/SRA.

define <8 x i32> @foo(<8 x i1> %bar) nounwind readnone {
entry:
  %s = sext <8 x i1> %bar to <8 x i32>
  ret <8 x i32> %s
; CHECK: foo
; CHECK: vpmovzxwd
; CHECK: vpslld
; CHECK: vpsrad
; CHECK: ret
}