1 ; All of these should be codegen'd without loading immediates
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
3 ; RUN: grep subc %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
9 define i64 @sub_ll(i64 %a, i64 %b) {
11 %tmp.2 = sub i64 %a, %b ; <i64> [#uses=1]
15 define i64 @sub_l_5(i64 %a) {
17 %tmp.1 = sub i64 5, %a ; <i64> [#uses=1]
21 define i64 @sub_l_m5(i64 %a) {
23 %tmp.1 = sub i64 -5, %a ; <i64> [#uses=1]