Simon Dardis | c2d3e38 | 2017-11-09 16:02:18 +0000 | [diff] [blame] | 1 | ; RUN: llc -asm-show-inst -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC |
| 2 | ; RUN: llc -asm-show-inst -march=mipsel -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC |
| 3 | ; RUN: llc -asm-show-inst -march=mipsel -mattr=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC16 |
| 4 | ; RUN: llc -asm-show-inst -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC16 |
| 5 | ; RUN: llc -asm-show-inst -march=mips -mattr=+micromips -relocation-model=static < %s | FileCheck %s -check-prefix=STATICMM |
| 6 | ; RUN: llc -asm-show-inst -march=mips -mattr=+micromips -relocation-model=pic < %s | FileCheck %s -check-prefix=PICMM |
| 7 | ; RUN: llc -asm-show-inst -march=mips -mcpu=mips32r6 -mattr=+micromips -relocation-model=static < %s | FileCheck %s -check-prefix=STATICMMR6 |
| 8 | ; RUN: llc -asm-show-inst -march=mips -mcpu=mips32r6 -mattr=+micromips -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC |
| 9 | |
| 10 | |
Akira Hatanaka | 9e5908a | 2011-12-12 22:41:39 +0000 | [diff] [blame] | 11 | |
| 12 | define void @count(i32 %x, i32 %y, i32 %z) noreturn nounwind readnone { |
| 13 | entry: |
| 14 | br label %bosco |
| 15 | |
| 16 | bosco: ; preds = %bosco, %entry |
| 17 | br label %bosco |
| 18 | } |
| 19 | |
Simon Dardis | c2d3e38 | 2017-11-09 16:02:18 +0000 | [diff] [blame] | 20 | ; PIC: b $BB0_1 # <MCInst #{{.*}} BEQ |
| 21 | ; PICMM: b $BB0_1 # <MCInst #{{.*}} BEQ_MM |
| 22 | ; STATIC: j $BB0_1 # <MCInst #{{.*}} J |
| 23 | ; STATICMM: j $BB0_1 # <MCInst #{{.*}} J_MM |
| 24 | ; STATICMMR6: bc $BB0_1 # <MCInst #{{.*}} BC_MMR6 |
| 25 | ; PIC16: b $BB0_1 |
| 26 | ; STATIC16: b $BB0_1 |