llvm-6502/test/CodeGen/Mips/micromips-compact-jump.ll
Jozef Kolek 85e08ed8a4 [mips][microMIPS] Delay slot filler: Replace the microMIPS JR with the JRC
This patch adds functionality in MIPS delay slot filler such as if delay slot
filler have to put NOP instruction into the delay slot of microMIPS JR
instruction, then instead of emitting NOP this instruction is replaced by
compact jump instruction JRC.

Differential Revision: http://reviews.llvm.org/D7522


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229128 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-13 17:51:27 +00:00

12 lines
232 B
LLVM

; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
; RUN: -disable-mips-delay-filler -O3 < %s | FileCheck %s
define i32 @foo(i32 signext %a) #0 {
entry:
ret i32 0
}
declare i32 @bar(i32 signext) #1
; CHECK: jrc