OSDN Git Service

[RISCV] Detect more errors when parsing vsetvli in the assembler
authorCraig Topper <craig.topper@sifive.com>
Tue, 8 Dec 2020 18:31:30 +0000 (10:31 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 8 Dec 2020 19:25:39 +0000 (11:25 -0800)
commitfb5b611af917f02337b69727fb8082e1ea3b22d5
tree138ec50c1ca34ef5bc948d7b792719a9a972615d
parent88e58939dcea54d59a77277d420a014dc90b06e7
[RISCV] Detect more errors when parsing vsetvli in the assembler

-Reject an "mf1" lmul
-Make sure tail agnostic is exactly "tu" or "ta" not just that it starts with "tu" or "ta"
-Make sure mask agnostic is exactly "mu" or "ma" not just that it starts with "mu" or "ma"

Differential Revision: https://reviews.llvm.org/D92805
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
llvm/test/MC/RISCV/rvv/invalid.s