gen_test_jump(label, ft) int label, ft;
{
  output_line("mov \ta,h");
  output_line("ora \tl");
  if (ft)
    output_with_tab("jnz \t");
  else
    output_with_tab("jz  \t");
  print_label(label);
  newline();
}


x86 assembly (clang, -O0):
<gen_test_jump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1060 <output_line@plt>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1060 <output_line@plt>
cmpl   $0x0,-0xc(%rbp)
je     1187 <gen_test_jump+0x47>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1050 <output_with_tab@plt>
jmp    1195 <gen_test_jump+0x55>
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1050 <output_with_tab@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1040 <print_label@plt>
mov    $0x0,%al
call   1030 <newline@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_test_jump>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1060 <output_line@plt>
lea    0xead(%rip),%rdi
xor    %eax,%eax
call   1060 <output_line@plt>
test   %ebx,%ebx
lea    0xeaa(%rip),%rax
lea    0xe9d(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <output_with_tab@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1040 <print_label@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <newline@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"mov \09a,h\00"
@.str.1 = [7 x i8] c"ora \09l\00"
@.str.2 = [6 x i8] c"jnz \09\00"
@.str.3 = [6 x i8] c"jz \09\00"
define i32 @gen_test_jump(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @output_line to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @output_line to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %5
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @output_with_tab to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %14
12: ; preds = %2
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @output_with_tab to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %14
14: ; preds = %12, %10
%15 = load i32, i32* %4
%16 = call i32 (i32, ...) bitcast (i32 (...)* @print_label to i32 (i32, ...)*)(i32 %15)
%17 = call i32 (...) @newline()
%18 = load i32, i32* %3
ret i32 %18
}

LLVM IR (-O2):
@.str = [9 x i8] c"mov \09a,h\00"
@.str.1 = [7 x i8] c"ora \09l\00"
@.str.2 = [6 x i8] c"jnz \09\00"
@.str.3 = [6 x i8] c"jz \09\00"
define i32 @gen_test_jump(i32 %0, i32 %1) {
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @output_line to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @output_line to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32 %1, 0
%6 = select i1 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @output_with_tab to i32 (i8*, ...)*)(i8* %6)
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @print_label to i32 (i32, ...)*)(i32 %0)
%9 = tail call i32 (...) @newline()
ret i32 undef
}