| ; RUN: llc < %s -O1 -mcpu=atom -mtriple=i686-linux | FileCheck %s |
| declare void @external_function(...) |
| define i32 @test_return_val(i32 %a) nounwind { |
| define i32 @test_optsize(i32 %a) nounwind optsize { |
| define i32 @test_minsize(i32 %a) nounwind minsize { |
| define i32 @test_add(i32 %a, i32 %b) nounwind { |
| define i32 @test_multiple_ret(i32 %a, i32 %b, i1 %c) nounwind { |
| ; CHECK: @test_multiple_ret |
| br i1 %c, label %bb1, label %bb2 |
| define void @test_call_others(i32 %x) nounwind |
| ; CHECK: test_call_others |
| %tobool = icmp eq i32 %x, 0 |
| br i1 %tobool, label %if.end, label %true.case |
| ; CHECK: jmp external_function |
| tail call void bitcast (void (...)* @external_function to void ()*)() nounwind |
| define void @test_branch_to_same_bb(i32 %x, i32 %y) nounwind { |
| ; CHECK: @test_branch_to_same_bb |
| %cmp = icmp sgt i32 %x, 0 |
| br i1 %cmp, label %while.cond, label %while.end |