aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2/thumb2-add5.ll
blob: 11219715c20223b203cf3c4098d71ea015ddaf84 (plain)
1
2
3
4
5
6
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {add\\W*r\[0-9\],\\W*r\[0-9\],\\W*r\[0-9\]} | Count 1

define i32 @f1(i32 %a, i32 %b) {
    %tmp = add i32 %a, %b
    ret i32 %tmp
}