1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands -mips-constant-islands-no-load-relaxation < %s | FileCheck %s -check-prefix=no-load-relax
3 ; ModuleID = 'const4.c'
4 target datalayout = "E-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32-S64"
5 target triple = "mips--linux-gnu"
7 @i = common global i32 0, align 4
8 @b = common global i32 0, align 4
9 @j = common global i32 0, align 4
10 @k = common global i32 0, align 4
11 @l = common global i32 0, align 4
13 ; Function Attrs: nounwind
16 store i32 -559023410, ptr @i, align 4
17 %0 = load i32, ptr @b, align 4
18 ; no-load-relax: lw ${{[0-9]+}}, $CPI0_1 # 16 bit inst
19 %tobool = icmp ne i32 %0, 0
20 br i1 %tobool, label %if.then, label %if.else
21 ; no-load-relax: beqz ${{[0-9]+}}, $BB0_3
22 ; no-load-relax: lw ${{[0-9]+}}, %call16(foo)(${{[0-9]+}})
23 ; no-load-relax: b $BB0_4
24 ; no-load-relax: .p2align 2
25 ; no-load-relax: $CPI0_1:
26 ; no-load-relax: .4byte 3735943886
27 ; no-load-relax: $BB0_3:
28 ; no-load-relax: lw ${{[0-9]+}}, %call16(goo)(${{[0-9]+}})
29 if.then: ; preds = %entry
33 if.else: ; preds = %entry
37 if.end: ; preds = %if.else, %if.then
169 declare void @foo(...) #1
171 declare void @goo(...) #1
173 declare void @hoo(...) #1
175 attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
176 attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
180 !0 = !{!"clang version 3.4 (gitosis@dmz-portal.mips.com:clang.git b310439121c875937d78cc49cc969bc1197fc025) (gitosis@dmz-portal.mips.com:llvm.git 7fc0ca9656ebec8dad61f72f5a5ddfb232c070fd)"}