1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands < %s | FileCheck %s -check-prefix=load-relax
3 ; 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
5 ; ModuleID = 'const6.c'
6 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"
7 target triple = "mips--linux-gnu"
9 @i = common global i32 0, align 4
10 @j = common global i32 0, align 4
11 @k = common global i32 0, align 4
12 @l = common global i32 0, align 4
13 @b = common global i32 0, align 4
15 ; Function Attrs: nounwind
18 store i32 -559023410, ptr @i, align 4
19 ; load-relax: lw ${{[0-9]+}}, $CPI0_0
21 ; load-relax: .p2align 2
22 ; load-relax: $CPI0_0:
23 ; load-relax: .4byte 3735943886
26 ; no-load-relax: lw ${{[0-9]+}}, $CPI0_1 # 16 bit inst
27 ; no-load-relax: jalrc ${{[0-9]+}}
28 ; no-load-relax: b $BB0_2
29 ; no-load-relax: .p2align 2
30 ; no-load-relax: $CPI0_1:
31 ; no-load-relax: .4byte 3735943886
32 ; no-load-relax: $BB0_2:
155 declare void @hoo(...) #1
157 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" }
158 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" }
162 !0 = !{!"clang version 3.4 (gitosis@dmz-portal.mips.com:clang.git b310439121c875937d78cc49cc969bc1197fc025) (gitosis@dmz-portal.mips.com:llvm.git 7fc0ca9656ebec8dad61f72f5a5ddfb232c070fd)"}