xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/atom-shuf.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=atom | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine <16 x i8> @foo(<16 x i8> %in) {
4*9880d681SAndroid Build Coastguard Worker  %r = shufflevector <16 x i8> %in, <16 x i8> undef, <16 x i32> < i32 7, i32 3, i32 2, i32 11, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
5*9880d681SAndroid Build Coastguard Worker  ret <16 x i8> %r
6*9880d681SAndroid Build Coastguard Worker; CHECK: foo
7*9880d681SAndroid Build Coastguard Worker; CHECK: pshufb
8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ret
9*9880d681SAndroid Build Coastguard Worker}
10