1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
4 define i32 @main(i1 %arg) {
6 ; CHECK: # %bb.0: # %bb
7 ; CHECK-NEXT: .p2align 4, 0x90
8 ; CHECK-NEXT: .LBB0_1: # %bb1
9 ; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
10 ; CHECK-NEXT: jmp .LBB0_1
15 %i = phi i64 [ 0, %bb ], [ %i8, %bb1 ]
17 %i3 = icmp eq i32 %i2, 0
19 %i5 = icmp eq i32 %i4, 0
20 %i6 = select i1 %arg, i1 %i5, i1 %i3
22 %i8 = select i1 %i6, i64 0, i64 %i