[all-commits] [llvm/llvm-project] dbbd62: [RISCV][NFC] Improve encoding/decoding tests for Z...

Venkata Ramanaiah Nalamothu via All-commits all-commits at lists.llvm.org
Tue Jun 13 07:48:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dbbd6276f20aa8bcf472f12a16a5a895ff797313
      https://github.com/llvm/llvm-project/commit/dbbd6276f20aa8bcf472f12a16a5a895ff797313
  Author: Venkata Ramanaiah Nalamothu <quic_vnalamot at quicinc.com>
  Date:   2023-06-13 (Tue, 13 Jun 2023)

  Changed paths:
    M llvm/test/MC/RISCV/rv32zbb-only-valid.s
    M llvm/test/MC/RISCV/rv32zbb-valid.s
    M llvm/test/MC/RISCV/rv64zbb-valid.s

  Log Message:
  -----------
  [RISCV][NFC] Improve encoding/decoding tests for Zbb instructions

Currently `llvm/test/MC/RISCV/rv64zbb-valid.s` doesn't cover all
the instructions e.g. `maxu` and `llvm/test/MC/RISCV/rv32zbb-valid.s`
can have rv64 run lines, similar to what Zba instruction tests have.

This patch does the following.
- Add rv64 run lines in `llvm/test/MC/RISCV/rv32zbb-valid.s`
- Keep only rv64 specific instructions in `llvm/test/MC/RISCV/rv64zbb-valid.s`
- Move rv32 instructions, with different encodings from rv64, into
  `llvm/test/MC/RISCV/rv32zbb-only-valid.s`

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D152680




More information about the All-commits mailing list