1 # RUN: llc -run-pass=peephole-opt %s -o - | FileCheck %s
3 # CHECK: [[IN:%.*]]:gprnopc = COPY $r0
4 # CHECK: [[SUM1TMP:%.*]]:rgpr = ADDri [[IN]], 133
5 # CHECK: [[SUM1:%.*]]:rgpr = ADDri killed [[SUM1TMP]], 25600
7 # CHECK: [[SUM2TMP:%.*]]:rgpr = SUBri [[IN]], 133
8 # CHECK: [[SUM2:%.*]]:rgpr = SUBri killed [[SUM2TMP]], 25600
10 # CHECK: [[SUM3TMP:%.*]]:rgpr = SUBri [[IN]], 133
11 # CHECK: [[SUM3:%.*]]:rgpr = SUBri killed [[SUM3TMP]], 25600
13 # CHECK: [[SUM4TMP:%.*]]:rgpr = ADDri killed [[IN]], 133
14 # CHECK: [[SUM4:%.*]]:rgpr = ADDri killed [[SUM4TMP]], 25600
18 target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
19 target triple = "armv7-apple-ios"
21 define i32 @foo(i32 %in) {
28 - { id: 0, class: gprnopc }
29 - { id: 1, class: rgpr }
30 - { id: 2, class: rgpr }
31 - { id: 3, class: rgpr }
32 - { id: 4, class: rgpr }
33 - { id: 5, class: rgpr }
34 - { id: 6, class: rgpr }
35 - { id: 7, class: rgpr }
36 - { id: 8, class: rgpr }
38 - { reg: '$r0', virtual-reg: '%0' }
45 %2 = SUBrr %0, killed %1, 14, $noreg, $noreg
48 %4 = SUBrr %0, killed %3, 14, $noreg, $noreg
51 %6 = ADDrr %0, killed %5, 14, $noreg, $noreg
54 %8 = ADDrr killed %0, killed %7, 14, $noreg, $noreg
57 BX_RET 14, $noreg, implicit $r0