mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-27 21:00:01 -04:00
8766b180e3
The previous version of this patch restricted the 'jal' instruction to MIPS and microMIPSr3. microMIPS32r6 does not have this instruction and instead uses jal as an alias for balc. Original commit message: > Reviewers: smaksimovic, atanasyan, abeserminji > > Differential Revision: https://reviews.llvm.org/D46114 > git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331259 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
1.5 KiB
LLVM
28 lines
1.5 KiB
LLVM
; RUN: llc -asm-show-inst -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC
|
|
; RUN: llc -asm-show-inst -march=mipsel -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC
|
|
; RUN: llc -asm-show-inst -march=mipsel -mattr=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC16
|
|
; RUN: llc -asm-show-inst -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC16
|
|
; RUN: llc -asm-show-inst -march=mips -mattr=+micromips -relocation-model=static < %s | FileCheck %s -check-prefix=STATICMM
|
|
; RUN: llc -asm-show-inst -march=mips -mattr=+micromips -relocation-model=pic < %s | FileCheck %s -check-prefix=PICMM
|
|
; RUN: llc -asm-show-inst -march=mips -mcpu=mips32r6 -mattr=+micromips -relocation-model=static < %s | FileCheck %s -check-prefix=STATICMMR6
|
|
; RUN: llc -asm-show-inst -march=mips -mcpu=mips32r6 -mattr=+micromips -relocation-model=pic < %s | FileCheck %s -check-prefix=PICMMR6
|
|
|
|
|
|
|
|
define void @count(i32 %x, i32 %y, i32 %z) noreturn nounwind readnone {
|
|
entry:
|
|
br label %bosco
|
|
|
|
bosco: ; preds = %bosco, %entry
|
|
br label %bosco
|
|
}
|
|
|
|
; PIC: b $BB0_1 # <MCInst #{{.*}} BEQ
|
|
; PICMM: b $BB0_1 # <MCInst #{{.*}} BEQ_MM
|
|
; STATIC: j $BB0_1 # <MCInst #{{.*}} J
|
|
; STATICMM: j $BB0_1 # <MCInst #{{.*}} J_MM
|
|
; STATICMMR6: bc $BB0_1 # <MCInst #{{.*}} BC_MMR6
|
|
; PICMMR6: bc $BB0_1 # <MCInst #{{.*}} BC_MMR6
|
|
; PIC16: b $BB0_1
|
|
; STATIC16: b $BB0_1
|