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 subfc %t | count 1
4 ; RUN: grep subfe %t | count 1
5 ; RUN: grep subfze %t | count 1
6 ; RUN: grep subfme %t | count 1
7 ; RUN: grep subfic %t | count 2
8 implementation ; Functions:
10 long %sub_ll(long %a, long %b) {
12 %tmp.2 = sub long %a, %b ; <long> [#uses=1]
16 long %sub_l_5(long %a) {
18 %tmp.1 = sub long 5, %a ; <long> [#uses=1]
22 long %sub_l_m5(long %a) {
24 %tmp.1 = sub long -5, %a ; <long> [#uses=1]