aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/thumb2-smla.ll
blob: 66cc88402fc581d3b477e36390c3ff250fab2e93 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -march=thumb -mattr=+thumb2 | \
; RUN:   grep smlabt | count 1

define i32 @f3(i32 %a, i16 %x, i32 %y) {
        %tmp = sext i16 %x to i32               ; <i32> [#uses=1]
        %tmp2 = ashr i32 %y, 16         ; <i32> [#uses=1]
        %tmp3 = mul i32 %tmp2, %tmp             ; <i32> [#uses=1]
        %tmp5 = add i32 %tmp3, %a               ; <i32> [#uses=1]
        ret i32 %tmp5
}