1 # RUN: llc -o - %s -mtriple=aarch64-- -mattr=+fuse-addsub-2reg-const1 -run-pass postmisched | FileCheck %s --check-prefixes=CHECK,FUSION
2 # RUN: llc -o - %s -mtriple=aarch64-- -mattr=-fuse-addsub-2reg-const1 -run-pass postmisched | FileCheck %s --check-prefixes=CHECK,NOFUSION
4 # CHECK-LABEL: name: addsub2reg
5 # CHECK: $w8 = ADDWrr killed renamable $w0, killed renamable $w1
6 # FUSION: renamable $w0 = ADDWri killed renamable $w8, 1, 0
7 # CHECK: $w9 = SUBWrr killed renamable $w2, killed renamable $w3
8 # NOFUSION: renamable $w0 = ADDWri killed renamable $w8, 1, 0
9 # CHECK: renamable $w1 = SUBWri killed renamable $w9, 1, 0
11 tracksRegLiveness: true
14 liveins: $w0, $w1, $w2, $w3
16 $w8 = ADDWrr killed renamable $w0, killed renamable $w1
17 $w9 = SUBWrr killed renamable $w2, killed renamable $w3
18 renamable $w0 = ADDWri killed renamable $w8, 1, 0
19 renamable $w1 = SUBWri killed renamable $w9, 1, 0
21 $w0 = ORRWrs killed renamable $w0, killed renamable $w1, 0
22 RET undef $lr, implicit $w0