diff options
Diffstat (limited to 'test/CodeGen/Mips/brdelayslot.ll')
-rw-r--r-- | test/CodeGen/Mips/brdelayslot.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/brdelayslot.ll b/test/CodeGen/Mips/brdelayslot.ll new file mode 100644 index 0000000..b266ce6 --- /dev/null +++ b/test/CodeGen/Mips/brdelayslot.ll @@ -0,0 +1,15 @@ +; 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) |