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---
14name:            test_ldwrdptr
15tracksRegLiveness: true
16body: |
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: ldd [[SCRATCH]], Z+1
24    ; CHECK-NEXT: mov r31, [[SCRATCH]]
25    ; CHECK-NEXT: pop r30
26
27    early-clobber $r31r30 = LDWRdPtr undef $r31r30
28...
29
30