[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / GlobalISel / prelegalizercombiner-copy-prop-disabled.mir
blob05eb831681e0790b8cf4f8f3a5def54ce0c24adb
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
15 # REQUIRES: asserts
17 --- |
18   target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
19   target triple = "aarch64--"
20   define void @test_copy(i8* %addr) {
21   entry:
22     ret void
23   }
24 ...
26 ---
27 name:            test_copy
28 body: |
29   bb.0.entry:
30     liveins: $x0
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)
36     ;
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)
44     %0:_(p0) = COPY $x0
45     %1:_(p0) = COPY %0
46     %2:_(p0) = COPY %1
47     $x0 = COPY %2
48 ...