xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/crash-shufflevector.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=armv7
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdeclare void @g(<16 x i8>)
4*9880d681SAndroid Build Coastguard Workerdefine void @f(<4 x i8> %param1, <4 x i8> %param2) {
5*9880d681SAndroid Build Coastguard Worker   %y1 = shufflevector <4 x i8> %param1, <4 x i8> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
6*9880d681SAndroid Build Coastguard Worker   %y2 = shufflevector <4 x i8> %param2, <4 x i8> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
7*9880d681SAndroid Build Coastguard Worker   %z = shufflevector <16 x i8> %y1, <16 x i8> %y2, <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 16, i32 17, i32 18, i32 19>
8*9880d681SAndroid Build Coastguard Worker   call void @g(<16 x i8> %z)
9*9880d681SAndroid Build Coastguard Worker   ret void
10*9880d681SAndroid Build Coastguard Worker}
11