brintos

brintos / llvm-project-archived public Read only

0
0
Text · 587 B · ab01c1e Raw
26 lines · plain
1; All of these should be codegen'd without loading immediates2; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t3; RUN: grep subc %t | count 14; RUN: grep subfe %t | count 15; RUN: grep subfze %t | count 16; RUN: grep subfme %t | count 17; RUN: grep subfic %t | count 28 9define i64 @sub_ll(i64 %a, i64 %b) {10entry:11	%tmp.2 = sub i64 %a, %b		; <i64> [#uses=1]12	ret i64 %tmp.213}14 15define i64 @sub_l_5(i64 %a) {16entry:17	%tmp.1 = sub i64 5, %a		; <i64> [#uses=1]18	ret i64 %tmp.119}20 21define i64 @sub_l_m5(i64 %a) {22entry:23	%tmp.1 = sub i64 -5, %a		; <i64> [#uses=1]24	ret i64 %tmp.125}26