xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/ci2.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static -mips16-constant-islands   < %s | FileCheck %s -check-prefix=constisle
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@i = common global i32 0, align 4
4*9880d681SAndroid Build Coastguard Worker@b = common global i32 0, align 4
5*9880d681SAndroid Build Coastguard Worker@l = common global i32 0, align 4
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind
8*9880d681SAndroid Build Coastguard Workerdefine void @foo() #0 {
9*9880d681SAndroid Build Coastguard Workerentry:
10*9880d681SAndroid Build Coastguard Worker  store i32 305419896, i32* @i, align 4
11*9880d681SAndroid Build Coastguard Worker  %0 = load i32, i32* @b, align 4
12*9880d681SAndroid Build Coastguard Worker  %tobool = icmp ne i32 %0, 0
13*9880d681SAndroid Build Coastguard Worker  br i1 %tobool, label %if.then, label %if.else
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Workerif.then:                                          ; preds = %entry
16*9880d681SAndroid Build Coastguard Worker  store i32 10, i32* @b, align 4
17*9880d681SAndroid Build Coastguard Worker  br label %if.end
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Workerif.else:                                          ; preds = %entry
20*9880d681SAndroid Build Coastguard Worker  store i32 20, i32* @b, align 4
21*9880d681SAndroid Build Coastguard Worker  br label %if.end
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Workerif.end:                                           ; preds = %if.else, %if.then
24*9880d681SAndroid Build Coastguard Worker  call void asm sideeffect ".space 100000", ""() #1, !srcloc !1
25*9880d681SAndroid Build Coastguard Worker  store i32 305419896, i32* @l, align 4
26*9880d681SAndroid Build Coastguard Worker  ret void
27*9880d681SAndroid Build Coastguard Worker; constisle: $CPI0_1:
28*9880d681SAndroid Build Coastguard Worker; constisle	.4byte	305419896               # 0x12345678
29*9880d681SAndroid Build Coastguard Worker; constisle	#APP
30*9880d681SAndroid Build Coastguard Worker; constisle	.space 100000
31*9880d681SAndroid Build Coastguard Worker; constisle	#NO_APP
32*9880d681SAndroid Build Coastguard Worker; constisle $CPI0_0:
33*9880d681SAndroid Build Coastguard Worker; constisle	.4byte	305419896               # 0x12345678
34*9880d681SAndroid Build Coastguard Worker}
35*9880d681SAndroid Build Coastguard Worker
36*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
37*9880d681SAndroid Build Coastguard Workerattributes #1 = { nounwind }
38*9880d681SAndroid Build Coastguard Worker
39*9880d681SAndroid Build Coastguard Worker!1 = !{i32 103}
40