blob: 9ca8d159614fa7799a05b7fca3a417e8c5155085 [file] [log] [blame]
Akira Hatanakadcfc2ea2011-12-12 22:41:39 +00001; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=CHECK-PIC
2; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC
Reed Kotler6e3443e2013-02-07 03:49:51 +00003; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=CHECK-PIC16
4; RUN: llc -march=mipsel -mcpu=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC16
Akira Hatanakadcfc2ea2011-12-12 22:41:39 +00005
6define void @count(i32 %x, i32 %y, i32 %z) noreturn nounwind readnone {
7entry:
8 br label %bosco
9
10bosco: ; preds = %bosco, %entry
11 br label %bosco
12}
13
14; CHECK-PIC: b $BB0_1
15; CHECK-STATIC: j $BB0_1
Reed Kotler6e3443e2013-02-07 03:49:51 +000016; CHECK-PIC16: b $BB0_1
Reed Kotler50354a32013-02-23 03:09:56 +000017; CHECK-STATIC16: b $BB0_1
18