Follow up to r165072. Try a different approach: only move the load when it's going...
[oota-llvm.git] / test / CodeGen / Mips / brdelayslot.ll
1 ; RUN: llc -march=mipsel -O0 < %s | FileCheck %s -check-prefix=None
2 ; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=Default
3
4 define void @foo1() nounwind {
5 entry:
6 ; Default:     jalr 
7 ; Default-NOT: nop 
8 ; Default:     jr 
9 ; Default-NOT: nop
10 ; Default:     .end
11 ; None: jalr 
12 ; None: nop 
13 ; None: jr 
14 ; None: nop
15 ; None: .end
16
17   tail call void @foo2(i32 3) nounwind
18   ret void
19 }
20
21 declare void @foo2(i32)