brintos

brintos / llvm-project-archived public Read only

0
0
Text · 671 B · f1850d4 Raw
16 lines · plain
1; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2,+dsp %s -o - | FileCheck %s2; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2,+dsp -arm-use-mulops=false %s -o - | FileCheck %s -check-prefix=NO_MULOPS3 4define i32 @f3(i32 %a, i16 %x, i32 %y) {5; CHECK: f36; CHECK: smlabt r0, r1, r2, r07; NO_MULOPS: f38; NO_MULOPS: smultb r1, r2, r19; NO_MULOPS-NEXT: add r0, r110        %tmp = sext i16 %x to i32               ; <i32> [#uses=1]11        %tmp2 = ashr i32 %y, 16         ; <i32> [#uses=1]12        %tmp3 = mul i32 %tmp2, %tmp             ; <i32> [#uses=1]13        %tmp5 = add i32 %tmp3, %a               ; <i32> [#uses=1]14        ret i32 %tmp515}16