1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=aarch64-postlegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s
6 name: postlegalize_copy_prop
8 tracksRegLiveness: true
13 ; CHECK-LABEL: name: postlegalize_copy_prop
14 ; CHECK: liveins: $x0, $x1
15 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
16 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
17 ; CHECK: [[ADD:%[0-9]+]]:_(s64) = G_ADD [[COPY]], [[COPY1]]
18 ; CHECK: [[ADD1:%[0-9]+]]:_(s64) = G_ADD [[ADD]], [[ADD]]
19 ; CHECK: $x0 = COPY [[ADD1]](s64)
23 %2:_(s64) = G_ADD %0, %1
25 %4:_(s64) = G_ADD %3, %3