brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 3350e6c Raw
39 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 - \3# RUN:     | FileCheck %s --check-prefix=CHECK-TINY4# RUN: llc -O0 -run-pass=avr-expand-pseudo -mattr=lowbytefirst %s -o - \5# RUN:     | FileCheck %s --check-prefix=CHECK-XMEGA6 7# This test checks the expansion of the 16-bit STSWRdK pseudo instruction.8 9--- |10  target triple = "avr--"11  define void @test_stwptrrr() {12  entry:13    ret void14  }15...16 17---18name:            test_stwptrrr19body: |20  bb.0.entry:21    liveins: $r31r30, $r17r1622 23    ; CHECK-LABEL: test_stwptrrr24    ; CHECK:       STDPtrQRr $r31r30, 1, $r1725    ; CHECK-NEXT:  STPtrRr $r31r30, $r1626 27    ; CHECK-TINY-LABEL: test_stwptrrr28    ; CHECK-TINY:       $r31r30 = STPtrPiRr killed $r31r30, $r16, 029    ; CHECK-TINY-NEXT:  $r31r30 = STPtrPiRr killed $r31r30, $r17, 030    ; CHECK-TINY-NEXT:  $r30 = SUBIRdK killed $r30, 2, implicit-def $sreg31    ; CHECK-TINY-NEXT:  $r31 = SBCIRdK killed $r31, 0, implicit-def $sreg, implicit killed $sreg32 33    ; CHECK-XMEGA-LABEL: test_stwptrrr34    ; CHECK-XMEGA:       STPtrRr $r31r30, $r1635    ; CHECK-XMEGA-NEXT:  STDPtrQRr $r31r30, 1, $r1736 37    STWPtrRr $r31r30, $r17r1638...39