mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
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
12 lines
232 B
LLVM
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
|