aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-shuffle.ll
blob: 0db334dd9940ef88f258a19961cdec1a6efe2b43 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s

; PR11102
define <4 x float> @test1(<4 x float> %a) nounwind {
  %b = shufflevector <4 x float> zeroinitializer, <4 x float> %a, <4 x i32> <i32 2, i32 5, i32 undef, i32 undef>
  ret <4 x float> %b
; CHECK: test1:
; CHECK: vshufps
; CHECK: vpshufd
}