Fill delay slot with useful instructions. Modified from Sparc's version of delay
[oota-llvm.git] / test / CodeGen / Mips / brdelayslot.ll
1 ; RUN: llc -march=mipsel  -enable-mips-delay-filler < %s | FileCheck %s
2
3 define void @foo1() nounwind {
4 entry:
5 ; CHECK:      jalr 
6 ; CHECK-NOT:  nop 
7 ; CHECK:      jr 
8 ; CHECK-NOT:  nop
9 ; CHECK:      .end
10
11   tail call void @foo2(i32 3) nounwind
12   ret void
13 }
14
15 declare void @foo2(i32)