Skip to content

Commit

Permalink
[AVR][NFC][test] Suppement a test of the pseudo instruction RORBRd
Browse files Browse the repository at this point in the history
Reviewed By: aykevl, Patryk27

Differential Revision: https://reviews.llvm.org/D152087
  • Loading branch information
benshi001 committed Jun 4, 2023
1 parent c9b9b08 commit 53a7c25
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions llvm/test/CodeGen/AVR/pseudo/RORBrd.mir
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# RUN: llc -O0 -run-pass=avr-expand-pseudo %s -o - | FileCheck %s

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

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

---
name: test_rorbrd
body: |
bb.0.entry:
liveins: $r14
; CHECK-LABEL: test_rorbrd
; CHECK: BST $r14, 0, implicit-def $sreg
; CHECK-NEXT: $r14 = RORRd $r14, implicit-def $sreg, implicit $sreg
; CHECK-NEXT: $r14 = BLD $r14, 7, implicit $sreg
$r14 = RORBRd $r14, implicit-def $sreg
...

0 comments on commit 53a7c25

Please sign in to comment.