]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/AVR/pseudo/LDWRdPtr-same-src-dst.mir
Vendor import of llvm trunk r338150:
[FreeBSD/FreeBSD.git] / test / CodeGen / AVR / pseudo / LDWRdPtr-same-src-dst.mir
1 # RUN: llc -O0 %s -o - | FileCheck %s
2
3 # This test checks the expansion of the 16-bit LDWRdPtr pseudo instruction.
4
5 --- |
6   target triple = "avr--"
7   define void @test_ldwrdptr() {
8   entry:
9     ret void
10   }
11 ...
12
13 ---
14 name:            test_ldwrdptr
15 tracksRegLiveness: true
16 body: |
17   bb.0.entry:
18
19     ; CHECK-LABEL: test_ldwrdptr
20
21     ; CHECK:      ld [[SCRATCH:r[0-9]+]], Z+
22     ; CHECK-NEXT: push [[SCRATCH]]
23     ; CHECK-NEXT: ld [[SCRATCH]], Z
24     ; CHECK-NEXT: mov r31, [[SCRATCH]]
25     ; CHECK-NEXT: pop r30
26
27     early-clobber $r31r30 = LDWRdPtr undef $r31r30
28 ...
29