1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -run-pass=aarch64-prelegalizer-combiner -global-isel -verify-machineinstrs %s -o - \
3 # RUN: | FileCheck --check-prefix=ENABLED %s
4 # RUN: llc -run-pass=aarch64-prelegalizer-combiner -global-isel -verify-machineinstrs %s -o - \
5 # RUN: --aarch64prelegalizercombinerhelper-disable-rule=copy_prop | FileCheck --check-prefix=DISABLED %s
10 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
11 target triple = "aarch64--"
12 define void @test_copy(i8* %addr) {
23 ; ENABLED-LABEL: name: test_copy
24 ; ENABLED: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
25 ; ENABLED: $x0 = COPY [[COPY]](p0)
26 ; DISABLED-LABEL: name: test_copy
27 ; DISABLED: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
28 ; DISABLED: [[COPY1:%[0-9]+]]:_(p0) = COPY [[COPY]](p0)
29 ; DISABLED: [[COPY2:%[0-9]+]]:_(p0) = COPY [[COPY1]](p0)
30 ; DISABLED: $x0 = COPY [[COPY2]](p0)