llvm/llvm/test/CodeGen/AVR/pseudo/ROLBRdR17.mir

# RUN: llc -O0 -run-pass=avr-expand-pseudo -mattr=+avrtiny %s -o - | FileCheck %s

# This test checks the expansion of the 8-bit ROLB (rotate) pseudo instruction
# on AVRTiny.

--- |
  target triple = "avr--"
  define void @test_rolbrd() {
  entry:
    ret void
  }
...

---
name:            test_rolbrd
body: |
  bb.0.entry:
    liveins: $r24

    ; CHECK-LABEL: test_rolbrd
    ; CHECK:         $r24 = ADDRdRr killed $r24, killed $r24, implicit-def $sreg
    ; CHECK-NEXT:    $r24 = ADCRdRr $r24, $r17, implicit-def dead $sreg, implicit killed $sreg
    $r24 = ROLBRdR17 $r24, implicit-def $sreg, implicit $r17
...