Home | History | Annotate | Download | only in Thumb2
      1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
      2 ; RUN: llc < %s -march=thumb -mattr=+thumb2 -arm-use-mulops=false | FileCheck %s -check-prefix=NO_MULOPS
      3 
      4 define i32 @f1(i32 %a, i32 %b, i32 %c) {
      5     %tmp1 = mul i32 %a, %b
      6     %tmp2 = add i32 %c, %tmp1
      7     ret i32 %tmp2
      8 }
      9 ; CHECK: f1:
     10 ; CHECK: 	mla	r0, r0, r1, r2
     11 ; NO_MULOPS: f1:
     12 ; NO_MULOPS: muls r0, r1, r0
     13 ; NO_MULOPS-NEXT: add r0, r2
     14 
     15 define i32 @f2(i32 %a, i32 %b, i32 %c) {
     16     %tmp1 = mul i32 %a, %b
     17     %tmp2 = add i32 %tmp1, %c
     18     ret i32 %tmp2
     19 }
     20 ; CHECK: f2:
     21 ; CHECK: 	mla	r0, r0, r1, r2
     22 ; NO_MULOPS: f2:
     23 ; NO_MULOPS: muls r0, r1, r0
     24 ; NO_MULOPS-NEXT: add r0, r2
     25