blob: ce8b8f6e35b1421f43c3ee9588b7ffed5264f53d [file] [log] [blame]
Daniel Sandersf9d8b8c2016-05-06 13:23:51 +00001; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 \
2; RUN: -mattr=+soft-float -mips16-hard-float -relocation-model=pic \
3; RUN: -mips16-constant-islands -verify-machineinstrs < %s | \
4; RUN: FileCheck %s -check-prefix=b-no-short
Reed Kotler4b7afe52013-11-13 23:52:18 +00005
Daniel Sandersf9d8b8c2016-05-06 13:23:51 +00006; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 \
7; RUN: -mattr=+soft-float -mips16-hard-float -relocation-model=pic \
8; RUN: -mips16-constant-islands -verify-machineinstrs < %s | \
9; RUN: FileCheck %s -check-prefix=b-long
Reed Kotler4b7afe52013-11-13 23:52:18 +000010
11; ModuleID = 'brsize3.c'
12target 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"
13target triple = "mips--linux-gnu"
14
15; Function Attrs: noreturn nounwind optsize
16define void @foo() #0 {
17entry:
18 br label %x
19
20x: ; preds = %x, %entry
21 tail call void asm sideeffect ".space 60000", ""() #1, !srcloc !1
22 br label %x
23; b-long: $BB0_1:
24; b-long: #APP
25; b-long: .space 60000
26; b-long: #NO_APP
27; b-long: b $BB0_1
28; b-no-short: $BB0_1:
29; b-no-short: #APP
30; b-no-short: .space 60000
31; b-no-short: #NO_APP
32; b-no-short-NOT: b $BB0_1 # 16 bit inst
33
34}
35
36attributes #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" }
37attributes #1 = { nounwind }
38
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000039!1 = !{i32 45}