blob: 9c48e9162a658a8b060679be42b9fb59dd33340f [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
17; CHECK-STATIC16: b $BB0_1