1 ; RUN: llc -mtriple thumbv7-eabi -arm-restrict-it -filetype asm -o - %s \
4 define arm_aapcscc i32 @function(i32 %i, i32 %j) {
6 %cmp = icmp eq i32 %i, %j
7 br i1 %cmp, label %if.then, label %if.end
9 if.then: ; preds = %entry
10 %mul = mul nsw i32 %i, %i
13 if.end: ; preds = %if.then, %entry
14 %i.addr.0 = phi i32 [ %mul, %if.then ], [ %i, %entry ]
18 ; CHECK-LABEL: function
19 ; CHECK: mul r2, r0, r0
21 ; CHECK-NOT: mulseq r0, r0, r0