Reduce (cmp 0, and_su (foo, bar)) into (bit foo, bar). This saves extra instruction...
[oota-llvm.git] / test / CodeGen / XCore / addsub64.ll
1 ; RUN: llc < %s -march=xcore -mcpu=xs1b-generic > %t1.s
2 ; RUN: grep ladd %t1.s | count 2
3 ; RUN: grep lsub %t1.s | count 2
4 define i64 @add64(i64 %a, i64 %b) {
5         %result = add i64 %a, %b
6         ret i64 %result
7 }
8
9 define i64 @sub64(i64 %a, i64 %b) {
10         %result = sub i64 %a, %b
11         ret i64 %result
12 }