[PATCH] D152087: [AVR][NFC][test] Supplement a test of pseudo instruction RORBRd

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 4 08:19:46 PDT 2023


This revision was automatically updated to reflect the committed changes.
benshi001 marked an inline comment as done.
Closed by commit rG53a7c254e493: [AVR][NFC][test] Suppement a test of the pseudo instruction RORBRd (authored by benshi001).

Changed prior to commit:
  https://reviews.llvm.org/D152087?vs=528176&id=528218#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152087/new/

https://reviews.llvm.org/D152087

Files:
  llvm/test/CodeGen/AVR/pseudo/RORBrd.mir


Index: llvm/test/CodeGen/AVR/pseudo/RORBrd.mir
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/AVR/pseudo/RORBrd.mir
@@ -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
+...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152087.528218.patch
Type: text/x-patch
Size: 794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230604/8bf25731/attachment.bin>


More information about the llvm-commits mailing list