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
6 # RUN: llc -run-pass=aarch64-prelegalizer-combiner -global-isel -verify-machineinstrs %s -o - \
7 # RUN: --aarch64prelegalizercombinerhelper-disable-rule="*" | FileCheck --check-prefix=DISABLED %s
8 # RUN: llc -run-pass=aarch64-prelegalizer-combiner -global-isel -verify-machineinstrs %s -o - \
9 # RUN: --aarch64prelegalizercombinerhelper-disable-rule="*,!copy_prop" \
10 # RUN: | FileCheck --check-prefix=ENABLED %s
11 # RUN: llc -run-pass=aarch64-prelegalizer-combiner -global-isel -verify-machineinstrs %s -o - \
12 # RUN: --aarch64prelegalizercombinerhelper-only-enable-rule="copy_prop" \
13 # RUN: | FileCheck --check-prefix=ENABLED %s
18 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
19 target triple = "aarch64--"
20 define void @test_copy(i8* %addr) {
31 ; ENABLED-LABEL: name: test_copy
32 ; ENABLED: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
33 ; ENABLED: $x0 = COPY [[COPY]](p0)
34 ; DISABLED-LABEL: name: test_copy
35 ; DISABLED: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
36 ; DISABLED: [[COPY1:%[0-9]+]]:_(p0) = COPY [[COPY]](p0)
37 ; DISABLED: [[COPY2:%[0-9]+]]:_(p0) = COPY [[COPY1]](p0)
38 ; DISABLED: $x0 = COPY [[COPY2]](p0)