[llvm] 224f2bd - [RISC-V] Avoid using an allocated extension name in invalid-attributes.s

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 21 08:22:03 PST 2026


Author: Alexander Richardson
Date: 2026-01-21T08:21:59-08:00
New Revision: 224f2bdc37fbf9c1198deefe3908c930572fbfe7

URL: https://github.com/llvm/llvm-project/commit/224f2bdc37fbf9c1198deefe3908c930572fbfe7
DIFF: https://github.com/llvm/llvm-project/commit/224f2bdc37fbf9c1198deefe3908c930572fbfe7.diff

LOG: [RISC-V] Avoid using an allocated extension name in invalid-attributes.s

The Y extension has been allocated and will no longer trigger an error
once https://github.com/llvm/llvm-project/pull/176870 lands. Use 't' to
test this case instead which is still marked as reserved and as far as I
know is not currently reserved for any future extensions.

Pull Request: https://github.com/llvm/llvm-project/pull/177094

Added: 
    

Modified: 
    llvm/test/MC/RISCV/invalid-attribute.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/RISCV/invalid-attribute.s b/llvm/test/MC/RISCV/invalid-attribute.s
index c640fccd15ae5..b3d7cda73b35c 100644
--- a/llvm/test/MC/RISCV/invalid-attribute.s
+++ b/llvm/test/MC/RISCV/invalid-attribute.s
@@ -13,8 +13,11 @@
 .attribute arch, "foo"
 # CHECK: [[@LINE-1]]:18: error: invalid arch name 'foo', string must begin with rv32{i,e,g}, rv64{i,e,g}, or a supported profile name{{$}}
 
-.attribute arch, "rv32i2p1_y2p0"
-# CHECK: [[@LINE-1]]:18: error: invalid arch name 'rv32i2p1_y2p0', invalid standard user-level extension 'y'
+.attribute arch, "rv32i2p1_z2p0"
+# CHECK: [[@LINE-1]]:18: error: invalid arch name 'rv32i2p1_z2p0', standard user-level extension name missing after 'z'
+
+.attribute arch, "rv32i2p1_t2p0"
+# CHECK: [[@LINE-1]]:18: error: invalid arch name 'rv32i2p1_t2p0', unsupported standard user-level extension 't'
 
 .attribute stack_align, "16"
 # CHECK: [[@LINE-1]]:25: error: expected numeric constant


        


More information about the llvm-commits mailing list