blob: 1323dedb462a9e73c3b44078514fa8073cae9c4f [file] [log] [blame]
Simon Dardisc2d3e382017-11-09 16:02:18 +00001; 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 Hatanaka9e5908a2011-12-12 22:41:39 +000011
12define void @count(i32 %x, i32 %y, i32 %z) noreturn nounwind readnone {
13entry:
14 br label %bosco
15
16bosco: ; preds = %bosco, %entry
17 br label %bosco
18}
19
Simon Dardisc2d3e382017-11-09 16:02:18 +000020; 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