35 lines · plain
1# RUN: llc -O0 -run-pass=avr-expand-pseudo %s -o - | FileCheck %s2# RUN: llc -O0 -run-pass=avr-expand-pseudo -mattr=avrtiny %s -o - | FileCheck %s --check-prefix=CHECK-TINY3 4# This test checks the expansion of the 16-bit 'LDDWRdPtrQ' pseudo instruction.5 6--- |7 target triple = "avr--"8 define void @test_lddwrdptrq() {9 entry:10 ret void11 }12...13 14---15name: test_lddwrdptrq16tracksRegLiveness: true17body: |18 bb.0.entry:19 liveins: $r31r3020 21 ; CHECK-LABEL: test_lddwrdptrq22 23 ; CHECK: $r24 = LDDRdPtrQ $r31r30, 1024 ; CHECK-NEXT: $r25 = LDDRdPtrQ $r31r30, 1125 26 ; CHECK-TINY: $r30 = SUBIRdK $r30, 246, implicit-def $sreg27 ; CHECK-TINY-NEXT: $r31 = SBCIRdK $r31, 255, implicit-def $sreg, implicit killed $sreg28 ; CHECK-TINY-NEXT: $r24, $r31r30 = LDRdPtrPi killed $r31r3029 ; CHECK-TINY-NEXT: $r25, $r31r30 = LDRdPtrPi killed $r31r3030 ; CHECK-TINY-NEXT: $r30 = SUBIRdK $r30, 12, implicit-def $sreg31 ; CHECK-TINY-NEXT: $r31 = SBCIRdK $r31, 0, implicit-def $sreg, implicit killed $sreg32 33 early-clobber $r25r24 = LDDWRdPtrQ undef $r31r30, 1034...35