define i32 @t(i32 %a, i32 %b, i32 %c, i32 %d) nounwind readnone {
entry:
; CHECK: t:
-; CHECK: muls r2, r3, r2
+; CHECK: muls r2, r2, r3
; CHECK-NEXT: mul r0, r0, r1
-; CHECK-NEXT: muls r0, r2, r0
+; CHECK-NEXT: muls r0, r0, r2
%0 = mul nsw i32 %a, %b
%1 = mul nsw i32 %c, %d
%2 = mul nsw i32 %0, %1