mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
f46ad918db
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 llvm-svn: 229128
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
|