xref: /aosp_15_r20/external/llvm/test/Integer/instructions_bt.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3*9880d681SAndroid Build Coastguard Worker; RUN: diff %t1.ll %t2.ll
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i39 @test_extractelement(<4 x i39> %V) {
7*9880d681SAndroid Build Coastguard Worker        %R = extractelement <4 x i39> %V, i32 1
8*9880d681SAndroid Build Coastguard Worker        ret i39 %R
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine <4 x i39> @test_insertelement(<4 x i39> %V) {
12*9880d681SAndroid Build Coastguard Worker        %R = insertelement <4 x i39> %V, i39 0, i32 0
13*9880d681SAndroid Build Coastguard Worker        ret <4 x i39> %R
14*9880d681SAndroid Build Coastguard Worker}
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Workerdefine <4 x i39> @test_shufflevector_u(<4 x i39> %V) {
17*9880d681SAndroid Build Coastguard Worker        %R = shufflevector <4 x i39> %V, <4 x i39> %V,
18*9880d681SAndroid Build Coastguard Worker                  <4 x i32> < i32 1, i32 undef, i32 7, i32 2>
19*9880d681SAndroid Build Coastguard Worker        ret <4 x i39> %R
20*9880d681SAndroid Build Coastguard Worker}
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Workerdefine <4 x float> @test_shufflevector_f(<4 x float> %V) {
23*9880d681SAndroid Build Coastguard Worker        %R = shufflevector <4 x float> %V, <4 x float> undef,
24*9880d681SAndroid Build Coastguard Worker                  <4 x i32> < i32 1, i32 undef, i32 7, i32 2>
25*9880d681SAndroid Build Coastguard Worker        ret <4 x float> %R
26*9880d681SAndroid Build Coastguard Worker}
27