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: --aarch64prelegalizercombiner-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: --aarch64prelegalizercombiner-disable-rule="*" | FileCheck --check-prefix=DISABLED %s
8 # RUN: llc -run-pass=aarch64-prelegalizer-combiner -global-isel -verify-machineinstrs %s -o - \
9 # RUN: --aarch64prelegalizercombiner-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: --aarch64prelegalizercombiner-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: liveins: $x0
33 ; ENABLED-NEXT: {{ $}}
34 ; ENABLED-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
35 ; ENABLED-NEXT: $x0 = COPY [[COPY]](p0)
37 ; DISABLED-LABEL: name: test_copy
38 ; DISABLED: liveins: $x0
39 ; DISABLED-NEXT: {{ $}}
40 ; DISABLED-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
41 ; DISABLED-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY [[COPY]](p0)
42 ; DISABLED-NEXT: [[COPY2:%[0-9]+]]:_(p0) = COPY [[COPY1]](p0)
43 ; DISABLED-NEXT: $x0 = COPY [[COPY2]](p0)