Skip to content

[RISCV] Improve Disassembler test xqci-invalid.txt #130039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

hchandel
Copy link
Contributor

@hchandel hchandel commented Mar 6, 2025

Some test lines were added in #129504 for Qualcomm uC Xqcibm extension. This patch improves those test lines.

Some test lines were added in llvm#129504 for Qualcomm uC Xqcibm
extension. This patch improves those test lines.

Change-Id: I6d6fb7c7d13b3c516c52adaba84fb094bae92901
@hchandel hchandel requested a review from lenary March 6, 2025 09:44
@llvmbot llvmbot added the mc Machine (object) code label Mar 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 6, 2025

@llvm/pr-subscribers-mc

Author: quic_hchandel (hchandel)

Changes

Some test lines were added in #129504 for Qualcomm uC Xqcibm extension. This patch improves those test lines.


Full diff: https://github.com/llvm/llvm-project/pull/130039.diff

1 Files Affected:

  • (modified) llvm/test/MC/Disassembler/RISCV/xqci-invalid.txt (+8-4)
diff --git a/llvm/test/MC/Disassembler/RISCV/xqci-invalid.txt b/llvm/test/MC/Disassembler/RISCV/xqci-invalid.txt
index da1a630fd9c7e..46e6f34be2385 100644
--- a/llvm/test/MC/Disassembler/RISCV/xqci-invalid.txt
+++ b/llvm/test/MC/Disassembler/RISCV/xqci-invalid.txt
@@ -1,15 +1,19 @@
-# RUN: not llvm-mc -disassemble -triple=riscv32 -mattr=+experimental-xqciac %s | FileCheck %s
+# RUN: not llvm-mc -disassemble -triple=riscv32 -mattr=+experimental-xqciac %s \
+# RUN:   | FileCheck -check-prefixes=CHECK,CHECK-XQCIAC %s
 # RUN: not llvm-mc -disassemble -triple=riscv32 -mattr=+experimental-xqcibm %s \
-# RUN: | FileCheck -check-prefixes=CHECK-XQCIBM  %s
+# RUN:   | FileCheck -check-prefixes=CHECK,CHECK-XQCIBM %s
 
 [0x00,0x00]
 # CHECK: unimp
 
 [0x8b,0x30,0x31,0x46]
-# CHECK-NOT: qc.shladd x1, x2, x3, {{[0-9]+}}
+# CHECK-XQCIAC-NOT: qc.shladd ra, sp, gp, {{[0-9]+}}
 
 [0x00,0x00]
 # CHECK: unimp
 
 [0x92,0x17]
-# CHECK-XQCIBM-NOT: qc.c.extu a5, 4
+# CHECK-XQCIBM-NOT: qc.c.extu a5, {{[0-9]+}}
+
+[0x00,0x00]
+# CHECK: unimp

Copy link
Member

@lenary lenary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, this should be a lot less brittle to future updates.

@hchandel hchandel requested review from topperc, pgodeq and svs-quic March 11, 2025 05:12
@lenary lenary merged commit c59c387 into llvm:main Mar 13, 2025
13 checks passed
@hchandel hchandel deleted the xqcibm_test branch March 17, 2025 04:51
frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
Some test lines were added in llvm#129504 for Qualcomm uC Xqcibm extension.
This patch improves those test lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mc Machine (object) code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants