1 ; RUN: llc < %s -march=x86-64 | FileCheck %s 2 3 declare void @bar() 4 5 define void @test1(i32* nocapture %X) nounwind { 6 entry: 7 %tmp1 = load i32* %X, align 4 8 %and = and i32 %tmp1, 255 9 %cmp = icmp eq i32 %and, 47 10 br i1 %cmp, label %if.then, label %if.end 11 12 if.then: 13 tail call void @bar() nounwind 14 br label %if.end 15 16 if.end: 17 ret void 18 ; CHECK: test1: 19 ; CHECK: cmpb $47, (%{{rdi|rcx}}) 20 } 21 22 define void @test2(i32 %X) nounwind { 23 entry: 24 %and = and i32 %X, 255 25 %cmp = icmp eq i32 %and, 47 26 br i1 %cmp, label %if.then, label %if.end 27 28 if.then: 29 tail call void @bar() nounwind 30 br label %if.end 31 32 if.end: 33 ret void 34 ; CHECK: test2: 35 ; CHECK: cmpb $47, %{{dil|cl}} 36 } 37