1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/CodeGen/Mips/brdelayslot.ll
Akira Hatanaka 50a4f6d570 Fill delay slot with useful instructions. Modified from Sparc's version of delay
slot filler.

Patch by Reed Kotler at Mips Technologies.

llvm-svn: 140825
2011-09-29 23:52:13 +00:00

16 lines
283 B
LLVM

; RUN: llc -march=mipsel -enable-mips-delay-filler < %s | FileCheck %s
define void @foo1() nounwind {
entry:
; CHECK: jalr
; CHECK-NOT: nop
; CHECK: jr
; CHECK-NOT: nop
; CHECK: .end
tail call void @foo2(i32 3) nounwind
ret void
}
declare void @foo2(i32)