1 # RUN: llc -O0 %s -o - | FileCheck %s
3 # This test checks the expansion of the 16-bit LDWRdPtr pseudo instruction.
6 target triple = "avr--"
7 define void @test_ldwrdptr() {
15 tracksRegLiveness: true
20 ; CHECK-LABEL: test_ldwrdptr
22 ; CHECK: ld [[SCRATCH:r[0-9]+]], Z
23 ; CHECK-NEXT: push [[SCRATCH]]
24 ; CHECK-NEXT: ldd [[SCRATCH]], Z+1
25 ; CHECK-NEXT: mov r31, [[SCRATCH]]
28 early-clobber $r31r30 = LDWRdPtr undef $r31r30