xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/vec_vrsave.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mcpu=g5 -o %t
2*9880d681SAndroid Build Coastguard Worker; RUN: grep vrlw %t
3*9880d681SAndroid Build Coastguard Worker; RUN: not grep spr %t
4*9880d681SAndroid Build Coastguard Worker; RUN: not grep vrsave %t
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine <4 x i32> @test_rol() {
7*9880d681SAndroid Build Coastguard Worker        ret <4 x i32> < i32 -11534337, i32 -11534337, i32 -11534337, i32 -11534337 >
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerdefine <4 x i32> @test_arg(<4 x i32> %A, <4 x i32> %B) {
11*9880d681SAndroid Build Coastguard Worker        %C = add <4 x i32> %A, %B               ; <<4 x i32>> [#uses=1]
12*9880d681SAndroid Build Coastguard Worker        ret <4 x i32> %C
13*9880d681SAndroid Build Coastguard Worker}
14*9880d681SAndroid Build Coastguard Worker
15