Akira Hatanaka | dcfc2ea | 2011-12-12 22:41:39 +0000 | [diff] [blame] | 1 | ; 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 Kotler | 6e3443e | 2013-02-07 03:49:51 +0000 | [diff] [blame] | 3 | ; 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 Hatanaka | dcfc2ea | 2011-12-12 22:41:39 +0000 | [diff] [blame] | 5 | |
| 6 | define void @count(i32 %x, i32 %y, i32 %z) noreturn nounwind readnone { |
| 7 | entry: |
| 8 | br label %bosco |
| 9 | |
| 10 | bosco: ; preds = %bosco, %entry |
| 11 | br label %bosco |
| 12 | } |
| 13 | |
| 14 | ; CHECK-PIC: b $BB0_1 |
| 15 | ; CHECK-STATIC: j $BB0_1 |
Reed Kotler | 6e3443e | 2013-02-07 03:49:51 +0000 | [diff] [blame] | 16 | ; CHECK-PIC16: b $BB0_1 |
Reed Kotler | 50354a3 | 2013-02-23 03:09:56 +0000 | [diff] [blame] | 17 | ; CHECK-STATIC16: b $BB0_1 |
| 18 | |