1 # RUN: llc -O0 -run-pass=avr-expand-pseudo %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() {
18 ; CHECK-LABEL: test_ldwrdptr
20 ; CHECK: $r0, $r31r30 = LDRdPtr
21 ; CHECK-NEXT: $r1 = LDDRdPtrQ $r31r30, 1
23 $r1r0 = LDWRdPtr $r31r30