1 # RUN: llc -O0 -run-pass=avr-expand-pseudo %s -o - | FileCheck %s
3 # This test checks the expansion of the 16-bit CPCW pseudo instruction.
6 target triple = "avr--"
7 define void @test_cpcwrdrr() {
17 liveins: $r21r20, $r23r22, $sreg
19 ; CHECK-LABEL: test_cpcwrdrr
21 ; CHECK: CPCRdRr $r20, $r22, implicit-def $sreg, implicit killed $sreg
22 ; CHECK-NEXT: CPCRdRr $r21, $r23, implicit-def $sreg, implicit killed $sreg
24 CPCWRdRr $r21r20, $r23r22, implicit-def $sreg, implicit $sreg