xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/2007-05-14-RegScavengerAssert.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi
2*9880d681SAndroid Build Coastguard Worker; PR1406
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker	%struct.AVClass = type { i8*, i8* (i8*)*, %struct.AVOption* }
5*9880d681SAndroid Build Coastguard Worker	%struct.AVCodec = type { i8*, i32, i32, i32, i32 (%struct.AVCodecContext*)*, i32 (%struct.AVCodecContext*, i8*, i32, i8*)*, i32 (%struct.AVCodecContext*)*, i32 (%struct.AVCodecContext*, i8*, i32*, i8*, i32)*, i32, %struct.AVCodec*, void (%struct.AVCodecContext*)*, %struct.AVRational*, i32* }
6*9880d681SAndroid Build Coastguard Worker	%struct.AVCodecContext = type { %struct.AVClass*, i32, i32, i32, i32, i32, i8*, i32, %struct.AVRational, i32, i32, i32, i32, i32, void (%struct.AVCodecContext*, %struct.AVFrame*, i32*, i32, i32, i32)*, i32, i32, i32, i32, i32, i32, i32, float, float, i32, i32, i32, i32, float, i32, i32, i32, %struct.AVCodec*, i8*, i32, i32, void (%struct.AVCodecContext*, i8*, i32, i32)*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8*, [32 x i8], i32, i32, i32, i32, i32, i32, i32, float, i32, i32 (%struct.AVCodecContext*, %struct.AVFrame*)*, void (%struct.AVCodecContext*, %struct.AVFrame*)*, i32, i32, i32, i32, i8*, i8*, float, float, i32, %struct.RcOverride*, i32, i8*, i32, i32, i32, float, float, float, float, i32, float, float, float, float, float, i32, i32, i32, i32*, i32, i32, i32, i32, %struct.AVRational, %struct.AVFrame*, i32, i32, [4 x i64], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 (%struct.AVCodecContext*, i32*)*, i32, i32, i32, i32, i32, i32, i8*, i32, i32, i32, i32, i32, i32, i16*, i16*, i32, i32, i32, i32, %struct.AVPaletteControl*, i32, i32 (%struct.AVCodecContext*, %struct.AVFrame*)*, i32, i32, i32, i32, i32, i32, i32, i32 (%struct.AVCodecContext*, i32 (%struct.AVCodecContext*, i8*)*, i8**, i32*, i32)*, i8*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
7*9880d681SAndroid Build Coastguard Worker	%struct.AVFrame = type { [4 x i8*], [4 x i32], [4 x i8*], i32, i32, i64, i32, i32, i32, i32, i32, i8*, i32, i8*, [2 x [2 x i16]*], i32*, i8, i8*, [4 x i64], i32, i32, i32, i32, i32, %struct.AVPanScan*, i32, i32, i16*, [2 x i8*] }
8*9880d681SAndroid Build Coastguard Worker	%struct.AVOption = type opaque
9*9880d681SAndroid Build Coastguard Worker	%struct.AVPaletteControl = type { i32, [256 x i32] }
10*9880d681SAndroid Build Coastguard Worker	%struct.AVPanScan = type { i32, i32, i32, [3 x [2 x i16]] }
11*9880d681SAndroid Build Coastguard Worker	%struct.AVRational = type { i32, i32 }
12*9880d681SAndroid Build Coastguard Worker	%struct.RcOverride = type { i32, i32, i32, float }
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Workerdefine i32 @decode_init(%struct.AVCodecContext* %avctx) {
15*9880d681SAndroid Build Coastguard Workerentry:
16*9880d681SAndroid Build Coastguard Worker	br i1 false, label %bb, label %cond_next789
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerbb:		; preds = %bb, %entry
19*9880d681SAndroid Build Coastguard Worker	br i1 false, label %bb59, label %bb
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerbb59:		; preds = %bb
22*9880d681SAndroid Build Coastguard Worker	%tmp68 = sdiv i64 0, 0		; <i64> [#uses=1]
23*9880d681SAndroid Build Coastguard Worker	%tmp6869 = trunc i64 %tmp68 to i32		; <i32> [#uses=2]
24*9880d681SAndroid Build Coastguard Worker	%tmp81 = call i32 asm "smull $0, $1, $2, $3     \0A\09mov   $0, $0,     lsr $4\0A\09add   $1, $0, $1, lsl $5\0A\09", "=&r,=*&r,r,r,i,i"( i32* null, i32 %tmp6869, i32 13316085, i32 23, i32 9 )		; <i32> [#uses=0]
25*9880d681SAndroid Build Coastguard Worker	%tmp90 = call i32 asm "smull $0, $1, $2, $3     \0A\09mov   $0, $0,     lsr $4\0A\09add   $1, $0, $1, lsl $5\0A\09", "=&r,=*&r,r,r,i,i"( i32* null, i32 %tmp6869, i32 10568984, i32 23, i32 9 )		; <i32> [#uses=0]
26*9880d681SAndroid Build Coastguard Worker	unreachable
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Workercond_next789:		; preds = %entry
29*9880d681SAndroid Build Coastguard Worker	ret i32 0
30*9880d681SAndroid Build Coastguard Worker}
31