mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Support experimental v extension v0.9.
Differential revision: https://reviews.llvm.org/D81213
This commit is contained in:
@@ -63,7 +63,7 @@ isExperimentalExtension(StringRef Ext) {
|
||||
Ext == "zbs" || Ext == "zbt" || Ext == "zbproposedc")
|
||||
return RISCVExtensionVersion{"0", "92"};
|
||||
if (Ext == "v")
|
||||
return RISCVExtensionVersion{"0", "8"};
|
||||
return RISCVExtensionVersion{"0", "9"};
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
@@ -380,6 +380,6 @@
|
||||
// RV32-EXPERIMENTAL-V-BADVERS: error: invalid arch name 'rv32iv0p1'
|
||||
// RV32-EXPERIMENTAL-V-BADVERS: unsupported version number 0.1 for experimental extension
|
||||
|
||||
// RUN: %clang -target riscv32-unknown-elf -march=rv32iv0p8 -menable-experimental-extensions -### %s -c 2>&1 | \
|
||||
// RUN: %clang -target riscv32-unknown-elf -march=rv32iv0p9 -menable-experimental-extensions -### %s -c 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=RV32-EXPERIMENTAL-V-GOODVERS %s
|
||||
// RV32-EXPERIMENTAL-V-GOODVERS: "-target-feature" "+experimental-v"
|
||||
|
||||
Reference in New Issue
Block a user