26 lines · plain
1# RUN: llc -o - %s -mtriple=aarch64-- -mattr=+fuse-addsub-2reg-const1 -run-pass postmisched | FileCheck %s --check-prefixes=CHECK,FUSION2# RUN: llc -o - %s -mtriple=aarch64-- -mattr=+fuse-addsub-2reg-const1 -passes=postmisched | FileCheck %s --check-prefixes=CHECK,FUSION3# RUN: llc -o - %s -mtriple=aarch64-- -mattr=-fuse-addsub-2reg-const1 -run-pass postmisched | FileCheck %s --check-prefixes=CHECK,NOFUSION4# RUN: llc -o - %s -mtriple=aarch64-- -mattr=-fuse-addsub-2reg-const1 -passes=postmisched | FileCheck %s --check-prefixes=CHECK,NOFUSION5---6# CHECK-LABEL: name: addsub2reg7# CHECK: $w8 = ADDWrr killed renamable $w0, killed renamable $w18# FUSION: renamable $w0 = ADDWri killed renamable $w8, 1, 09# CHECK: $w9 = SUBWrr killed renamable $w2, killed renamable $w310# NOFUSION: renamable $w0 = ADDWri killed renamable $w8, 1, 011# CHECK: renamable $w1 = SUBWri killed renamable $w9, 1, 012name: addsub2reg13tracksRegLiveness: true14body: |15 bb.0.entry:16 liveins: $w0, $w1, $w2, $w317 18 $w8 = ADDWrr killed renamable $w0, killed renamable $w119 $w9 = SUBWrr killed renamable $w2, killed renamable $w320 renamable $w0 = ADDWri killed renamable $w8, 1, 021 renamable $w1 = SUBWri killed renamable $w9, 1, 022 23 $w0 = ORRWrs killed renamable $w0, killed renamable $w1, 024 RET undef $lr, implicit $w025...26