Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / AVR / pseudo / COPY.mir
blob1cd3383425f88d4be4eb24c36b8940127c8610ff
1 # RUN: llc -O0 %s -o - | FileCheck %s
3 --- |
4   target triple = "avr--"
6   define void @test_copy_nonoverlapping() {
7   entry:
8     ret void
9   }
11   define void @test_copy_overlapping() {
12   entry:
13     ret void
14   }
16   declare void @foo(i16 %0)
17 ...
19 ---
20 name: test_copy_nonoverlapping
21 tracksRegLiveness: true
22 body: |
23   bb.0.entry:
24     liveins: $r25r24
26     ; CHECK-LABEL: test_copy_nonoverlapping:
27     ; CHECK: mov r22, r24
28     ; CHECK-NEXT: mov r23, r25
30     $r23r22 = COPY $r25r24
31     RCALLk @foo, implicit $r24r23
32 ...
34 ---
35 name: test_copy_overlapping
36 tracksRegLiveness: true
37 body: |
38   bb.0.entry:
39     liveins: $r24r23
41     ; CHECK-LABEL: test_copy_overlapping:
42     ; CHECK: mov r25, r24
43     ; CHECK-NEXT: mov r24, r23
45     $r25r24 = COPY $r24r23
46     RCALLk @foo, implicit $r25r24
47 ...