blob: 27ff9268b40da9d3a4d15cb4d25311c45227469e [file] [log] [blame]
Bruno Cardoso Lopes65b74e12011-07-21 01:55:47 +00001; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2
3; FIXME: use avx versions for punpcklbw and punpckhbw
4
5; CHECK: vextractf128 $0
6; CHECK-NEXT: punpcklbw
7; CHECK-NEXT: punpckhbw
8; CHECK-NEXT: vinsertf128 $0
9; CHECK-NEXT: vinsertf128 $1
10; CHECK-NEXT: vpermilps $85
11define <32 x i8> @funcA(<32 x i8> %a) nounwind uwtable readnone ssp {
12entry:
13 %shuffle = shufflevector <32 x i8> %a, <32 x i8> undef, <32 x i32> <i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5>
14 ret <32 x i8> %shuffle
15}
16