blob: dad0d841d4c6a0df5ee9ec52f93293c25b27f08c [file] [log] [blame]
Eric Christopher81fa35c2015-05-08 00:57:22 +00001; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands < %s | FileCheck %s -check-prefix=b-no-short
Reed Kotler4b7afe52013-11-13 23:52:18 +00002
Eric Christopher81fa35c2015-05-08 00:57:22 +00003; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands < %s | FileCheck %s -check-prefix=b-long
Reed Kotler4b7afe52013-11-13 23:52:18 +00004
5; ModuleID = 'brsize3.c'
6target 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"
7target triple = "mips--linux-gnu"
8
9; Function Attrs: noreturn nounwind optsize
10define void @foo() #0 {
11entry:
12 br label %x
13
14x: ; preds = %x, %entry
15 tail call void asm sideeffect ".space 60000", ""() #1, !srcloc !1
16 br label %x
17; b-long: $BB0_1:
18; b-long: #APP
19; b-long: .space 60000
20; b-long: #NO_APP
21; b-long: b $BB0_1
22; b-no-short: $BB0_1:
23; b-no-short: #APP
24; b-no-short: .space 60000
25; b-no-short: #NO_APP
26; b-no-short-NOT: b $BB0_1 # 16 bit inst
27
28}
29
30attributes #0 = { noreturn nounwind optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
31attributes #1 = { nounwind }
32
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000033!1 = !{i32 45}