diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/CodeGen/X86/loop-blocks.ll | |
parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
download | src-test-01095a5d43bbfde13731688ddcf6048ebb8b7721.tar.gz src-test-01095a5d43bbfde13731688ddcf6048ebb8b7721.zip |
Notes
Diffstat (limited to 'test/CodeGen/X86/loop-blocks.ll')
-rw-r--r-- | test/CodeGen/X86/loop-blocks.ll | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/CodeGen/X86/loop-blocks.ll b/test/CodeGen/X86/loop-blocks.ll index a81ceb902ab4e..1a1d11e6cb317 100644 --- a/test/CodeGen/X86/loop-blocks.ll +++ b/test/CodeGen/X86/loop-blocks.ll @@ -200,6 +200,34 @@ block102: br label %loop } +; CHECK-LABEL: check_minsize: +; CHECK: jmp .LBB4_1 +; CHECK-NOT: align +; CHECK-NEXT: .LBB4_2: +; CHECK-NEXT: callq loop_latch +; CHECK-NEXT: .LBB4_1: +; CHECK-NEXT: callq loop_header + + +define void @check_minsize() minsize nounwind { +entry: + br label %loop + +loop: + call void @loop_header() + %t0 = tail call i32 @get() + %t1 = icmp slt i32 %t0, 0 + br i1 %t1, label %done, label %bb + +bb: + call void @loop_latch() + br label %loop + +done: + call void @exit() + ret void +} + declare void @bar99() nounwind declare void @bar100() nounwind declare void @bar101() nounwind |