1 ; All of these should be codegen'd without loading immediates
2 ; RUN: llc < %s -march=ppc32 -o %t
3 ; RUN: grep addc %t | count 1
4 ; RUN: grep adde %t | count 1
5 ; RUN: grep addze %t | count 1
6 ; RUN: grep addme %t | count 1
7 ; RUN: grep addic %t | count 2
9 define i64 @add_ll(i64 %a, i64 %b) {
11 %tmp.2 = add i64 %b, %a ; <i64> [#uses=1]
15 define i64 @add_l_5(i64 %a) {
17 %tmp.1 = add i64 %a, 5 ; <i64> [#uses=1]
21 define i64 @add_l_m5(i64 %a) {
23 %tmp.1 = add i64 %a, -5 ; <i64> [#uses=1]