xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/reg-coalesce-simple.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32  | not grep or
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker%struct.foo = type { i32, i32, [0 x i8] }
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine i32 @test(%struct.foo* %X) nounwind {
6*9880d681SAndroid Build Coastguard Worker        %tmp1 = getelementptr %struct.foo, %struct.foo* %X, i32 0, i32 2, i32 100            ; <i8*> [#uses=1]
7*9880d681SAndroid Build Coastguard Worker        %tmp = load i8, i8* %tmp1           ; <i8> [#uses=1]
8*9880d681SAndroid Build Coastguard Worker        %tmp2 = zext i8 %tmp to i32             ; <i32> [#uses=1]
9*9880d681SAndroid Build Coastguard Worker        ret i32 %tmp2
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker
13