xref: /llvm-project/llvm/test/CodeGen/AVR/pseudo/RORBrd.mir (revision 53a7c254e493499fd2007c9335e4c0d3ee96981c)
1# RUN: llc -O0 -run-pass=avr-expand-pseudo %s -o - | FileCheck %s
2
3# This test checks the expansion of the 8-bit RORB (rotate) pseudo instruction.
4
5--- |
6  target triple = "avr--"
7  define void @test_rorbrd() {
8  entry:
9    ret void
10  }
11...
12
13---
14name:            test_rorbrd
15body: |
16  bb.0.entry:
17    liveins: $r14
18
19    ; CHECK-LABEL: test_rorbrd
20    ; CHECK:         BST $r14, 0, implicit-def $sreg
21    ; CHECK-NEXT:    $r14 = RORRd $r14, implicit-def $sreg, implicit $sreg
22    ; CHECK-NEXT:    $r14 = BLD $r14, 7, implicit $sreg
23
24    $r14 = RORBRd $r14, implicit-def $sreg
25...
26