1 ; All of these should be codegen'd without loading immediates
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f
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 implementation ; Functions:
11 long %add_ll(long %a, long %b) {
13 %tmp.2 = add long %b, %a ; <long> [#uses=1]
17 long %add_l_5(long %a) {
19 %tmp.1 = add long %a, 5 ; <long> [#uses=1]
23 long %add_l_m5(long %a) {
25 %tmp.1 = add long %a, -5 ; <long> [#uses=1]