Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

24 lines
620 B
LLVM

; RUN: llc -mtriple thumbv7-eabi -arm-restrict-it -filetype asm -o - %s \
; RUN: | FileCheck %s
define arm_aapcscc i32 @function(i32 %i, i32 %j) {
entry:
%cmp = icmp eq i32 %i, %j
br i1 %cmp, label %if.then, label %if.end
if.then: ; preds = %entry
%mul = mul nsw i32 %i, %i
br label %if.end
if.end: ; preds = %if.then, %entry
%i.addr.0 = phi i32 [ %mul, %if.then ], [ %i, %entry ]
ret i32 %i.addr.0
}
; CHECK-LABEL: function
; CHECK: cmp r0, r1
; CHECK-NOT: mulseq r0, r0, r0
; CHECK: muleq r0, r0, r0
; CHECK: bx lr