From 53a7c254e493499fd2007c9335e4c0d3ee96981c Mon Sep 17 00:00:00 2001 From: Ben Shi <2283975856@qq.com> Date: Sun, 4 Jun 2023 11:22:10 +0800 Subject: [PATCH] [AVR][NFC][test] Suppement a test of the pseudo instruction RORBRd Reviewed By: aykevl, Patryk27 Differential Revision: https://reviews.llvm.org/D152087 --- llvm/test/CodeGen/AVR/pseudo/RORBrd.mir | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 llvm/test/CodeGen/AVR/pseudo/RORBrd.mir diff --git a/llvm/test/CodeGen/AVR/pseudo/RORBrd.mir b/llvm/test/CodeGen/AVR/pseudo/RORBrd.mir new file mode 100644 index 0000000..d0f84b8 --- /dev/null +++ b/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 +... -- 2.7.4