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() {
19 ; CHECK-LABEL: test_ldwrdptr
21 ; CHECK: $r0 = LDRdPtr $r31r30
22 ; CHECK-NEXT: $r1 = LDDRdPtrQ $r31r30, 1
24 $r1r0 = LDWRdPtr $r31r30