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

define i32 @f1(i32 %a) {
    %tmp = sub i32 0, %a
    ret i32 %tmp
}