blob: bb16fa83fc5cfa19b02cc8115759dea67e408fae [file] [log] [blame]
Daniel Sanders8008de52015-10-15 14:34:23 +00001; 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
Reed Kotlerd3b28eb2013-11-24 02:53:09 +00002
3@i = common global i32 0, align 4
4@b = common global i32 0, align 4
5@l = common global i32 0, align 4
6
7; Function Attrs: nounwind
8define void @foo() #0 {
9entry:
10 store i32 305419896, i32* @i, align 4
David Blaikiea79ac142015-02-27 21:17:42 +000011 %0 = load i32, i32* @b, align 4
Reed Kotlerd3b28eb2013-11-24 02:53:09 +000012 %tobool = icmp ne i32 %0, 0
13 br i1 %tobool, label %if.then, label %if.else
14
15if.then: ; preds = %entry
16 store i32 10, i32* @b, align 4
17 br label %if.end
18
19if.else: ; preds = %entry
20 store i32 20, i32* @b, align 4
21 br label %if.end
22
23if.end: ; preds = %if.else, %if.then
24 call void asm sideeffect ".space 100000", ""() #1, !srcloc !1
25 store i32 305419896, i32* @l, align 4
26 ret void
27; constisle: $CPI0_1:
28; constisle .4byte 305419896 # 0x12345678
29; constisle #APP
30; constisle .space 100000
31; constisle #NO_APP
32; constisle $CPI0_0:
33; constisle .4byte 305419896 # 0x12345678
34}
35
36attributes #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" }
37attributes #1 = { nounwind }
38
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000039!1 = !{i32 103}