1 ; RUN: llc < %s -mtriple=x86_64-- -mcpu=corei7-avx | FileCheck %s
3 ; testb should be scheduled right before je to enable macro-fusion.
5 ; CHECK: testb $2, %{{[abcd]}}h
8 define i32 @check_flag(i32 %flags, ...) nounwind {
10 %and = and i32 %flags, 512
11 %tobool = icmp eq i32 %and, 0
12 br i1 %tobool, label %if.end, label %if.then
18 %hasflag = phi i32 [ 1, %if.then ], [ 0, %entry ]