1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s
4 define i64 @foo(i1 %0) {
7 ; CHECK-NEXT: movl $1, %eax
8 ; CHECK-NEXT: testb $1, %dil
9 ; CHECK-NEXT: je .LBB0_2
10 ; CHECK-NEXT: # %bb.1:
11 ; CHECK-NEXT: xorl %eax, %eax
12 ; CHECK-NEXT: .LBB0_2:
17 %3 = select i1 %0, i1 %0, i1 false
19 br i1 %4, label %5, label %6
25 %7 = phi i64 [ 0, %5 ], [ 1, %2 ]