-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[RISCV] Add processor definition for SiFive P870 #137725
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
clang/test/Driver/print-enabled-extensions/riscv-sifive-p870.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// RUN: %clang --target=riscv64 -mcpu=sifive-p870 --print-enabled-extensions | FileCheck %s | ||
// REQUIRES: riscv-registered-target | ||
|
||
// CHECK: Extensions enabled for the given RISC-V target | ||
// CHECK-EMPTY: | ||
// CHECK-NEXT: Name Version Description | ||
// CHECK-NEXT: i 2.1 'I' (Base Integer Instruction Set) | ||
// CHECK-NEXT: m 2.0 'M' (Integer Multiplication and Division) | ||
// CHECK-NEXT: a 2.1 'A' (Atomic Instructions) | ||
// CHECK-NEXT: f 2.2 'F' (Single-Precision Floating-Point) | ||
// CHECK-NEXT: d 2.2 'D' (Double-Precision Floating-Point) | ||
// CHECK-NEXT: c 2.0 'C' (Compressed Instructions) | ||
// CHECK-NEXT: b 1.0 'B' (the collection of the Zba, Zbb, Zbs extensions) | ||
// CHECK-NEXT: v 1.0 'V' (Vector Extension for Application Processors) | ||
// CHECK-NEXT: zic64b 1.0 'Zic64b' (Cache Block Size Is 64 Bytes) | ||
// CHECK-NEXT: zicbom 1.0 'Zicbom' (Cache-Block Management Instructions) | ||
// CHECK-NEXT: zicbop 1.0 'Zicbop' (Cache-Block Prefetch Instructions) | ||
// CHECK-NEXT: zicboz 1.0 'Zicboz' (Cache-Block Zero Instructions) | ||
// CHECK-NEXT: ziccamoa 1.0 'Ziccamoa' (Main Memory Supports All Atomics in A) | ||
// CHECK-NEXT: ziccif 1.0 'Ziccif' (Main Memory Supports Instruction Fetch with Atomicity Requirement) | ||
// CHECK-NEXT: zicclsm 1.0 'Zicclsm' (Main Memory Supports Misaligned Loads/Stores) | ||
// CHECK-NEXT: ziccrse 1.0 'Ziccrse' (Main Memory Supports Forward Progress on LR/SC Sequences) | ||
// CHECK-NEXT: zicntr 2.0 'Zicntr' (Base Counters and Timers) | ||
// CHECK-NEXT: zicond 1.0 'Zicond' (Integer Conditional Operations) | ||
// CHECK-NEXT: zicsr 2.0 'Zicsr' (CSRs) | ||
// CHECK-NEXT: zifencei 2.0 'Zifencei' (fence.i) | ||
// CHECK-NEXT: zihintntl 1.0 'Zihintntl' (Non-Temporal Locality Hints) | ||
// CHECK-NEXT: zihintpause 2.0 'Zihintpause' (Pause Hint) | ||
// CHECK-NEXT: zihpm 2.0 'Zihpm' (Hardware Performance Counters) | ||
// CHECK-NEXT: zimop 1.0 'Zimop' (May-Be-Operations) | ||
// CHECK-NEXT: zmmul 1.0 'Zmmul' (Integer Multiplication) | ||
// CHECK-NEXT: za64rs 1.0 'Za64rs' (Reservation Set Size of at Most 64 Bytes) | ||
// CHECK-NEXT: zaamo 1.0 'Zaamo' (Atomic Memory Operations) | ||
// CHECK-NEXT: zalrsc 1.0 'Zalrsc' (Load-Reserved/Store-Conditional) | ||
// CHECK-NEXT: zama16b 1.0 'Zama16b' (Atomic 16-byte misaligned loads, stores and AMOs) | ||
// CHECK-NEXT: zawrs 1.0 'Zawrs' (Wait on Reservation Set) | ||
// CHECK-NEXT: zfa 1.0 'Zfa' (Additional Floating-Point) | ||
// CHECK-NEXT: zfbfmin 1.0 'Zfbfmin' (Scalar BF16 Converts) | ||
// CHECK-NEXT: zfh 1.0 'Zfh' (Half-Precision Floating-Point) | ||
// CHECK-NEXT: zfhmin 1.0 'Zfhmin' (Half-Precision Floating-Point Minimal) | ||
// CHECK-NEXT: zca 1.0 'Zca' (part of the C extension, excluding compressed floating point loads/stores) | ||
// CHECK-NEXT: zcb 1.0 'Zcb' (Compressed basic bit manipulation instructions) | ||
// CHECK-NEXT: zcd 1.0 'Zcd' (Compressed Double-Precision Floating-Point Instructions) | ||
// CHECK-NEXT: zcmop 1.0 'Zcmop' (Compressed May-Be-Operations) | ||
// CHECK-NEXT: zba 1.0 'Zba' (Address Generation Instructions) | ||
// CHECK-NEXT: zbb 1.0 'Zbb' (Basic Bit-Manipulation) | ||
// CHECK-NEXT: zbs 1.0 'Zbs' (Single-Bit Instructions) | ||
// CHECK-NEXT: zkr 1.0 'Zkr' (Entropy Source Extension) | ||
// CHECK-NEXT: zkt 1.0 'Zkt' (Data Independent Execution Latency) | ||
// CHECK-NEXT: zvbb 1.0 'Zvbb' (Vector basic bit-manipulation instructions) | ||
// CHECK-NEXT: zvbc 1.0 'Zvbc' (Vector Carryless Multiplication) | ||
// CHECK-NEXT: zve32f 1.0 'Zve32f' (Vector Extensions for Embedded Processors with maximal 32 EEW and F extension) | ||
// CHECK-NEXT: zve32x 1.0 'Zve32x' (Vector Extensions for Embedded Processors with maximal 32 EEW) | ||
// CHECK-NEXT: zve64d 1.0 'Zve64d' (Vector Extensions for Embedded Processors with maximal 64 EEW, F and D extension) | ||
// CHECK-NEXT: zve64f 1.0 'Zve64f' (Vector Extensions for Embedded Processors with maximal 64 EEW and F extension) | ||
// CHECK-NEXT: zve64x 1.0 'Zve64x' (Vector Extensions for Embedded Processors with maximal 64 EEW) | ||
// CHECK-NEXT: zvfbfmin 1.0 'Zvfbfmin' (Vector BF16 Converts) | ||
// CHECK-NEXT: zvfbfwma 1.0 'Zvfbfwma' (Vector BF16 widening mul-add) | ||
// CHECK-NEXT: zvfh 1.0 'Zvfh' (Vector Half-Precision Floating-Point) | ||
// CHECK-NEXT: zvfhmin 1.0 'Zvfhmin' (Vector Half-Precision Floating-Point Minimal) | ||
// CHECK-NEXT: zvkb 1.0 'Zvkb' (Vector Bit-manipulation used in Cryptography) | ||
// CHECK-NEXT: zvkg 1.0 'Zvkg' (Vector GCM instructions for Cryptography) | ||
// CHECK-NEXT: zvkn 1.0 'Zvkn' (shorthand for 'Zvkned', 'Zvknhb', 'Zvkb', and 'Zvkt') | ||
// CHECK-NEXT: zvknc 1.0 'Zvknc' (shorthand for 'Zvknc' and 'Zvbc') | ||
// CHECK-NEXT: zvkned 1.0 'Zvkned' (Vector AES Encryption & Decryption (Single Round)) | ||
// CHECK-NEXT: zvkng 1.0 'Zvkng' (shorthand for 'Zvkn' and 'Zvkg') | ||
// CHECK-NEXT: zvknhb 1.0 'Zvknhb' (Vector SHA-2 (SHA-256 and SHA-512)) | ||
// CHECK-NEXT: zvks 1.0 'Zvks' (shorthand for 'Zvksed', 'Zvksh', 'Zvkb', and 'Zvkt') | ||
// CHECK-NEXT: zvksc 1.0 'Zvksc' (shorthand for 'Zvks' and 'Zvbc') | ||
// CHECK-NEXT: zvksed 1.0 'Zvksed' (SM4 Block Cipher Instructions) | ||
// CHECK-NEXT: zvksg 1.0 'Zvksg' (shorthand for 'Zvks' and 'Zvkg') | ||
// CHECK-NEXT: zvksh 1.0 'Zvksh' (SM3 Hash Function Instructions) | ||
// CHECK-NEXT: zvkt 1.0 'Zvkt' (Vector Data-Independent Execution Latency) | ||
// CHECK-NEXT: zvl128b 1.0 'Zvl128b' (Minimum Vector Length 128) | ||
// CHECK-NEXT: zvl32b 1.0 'Zvl32b' (Minimum Vector Length 32) | ||
// CHECK-NEXT: zvl64b 1.0 'Zvl64b' (Minimum Vector Length 64) | ||
// CHECK-NEXT: supm 1.0 'Supm' (Indicates User-mode Pointer Masking) | ||
// CHECK-EMPTY: | ||
// CHECK-NEXT: Experimental extensions | ||
// CHECK-EMPTY: | ||
// CHECK-NEXT: ISA String: rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_b1p0_v1p0_zic64b1p0_zicbom1p0_zicbop1p0_zicboz1p0_ziccamoa1p0_ziccif1p0_zicclsm1p0_ziccrse1p0_zicntr2p0_zicond1p0_zicsr2p0_zifencei2p0_zihintntl1p0_zihintpause2p0_zihpm2p0_zimop1p0_zmmul1p0_za64rs1p0_zaamo1p0_zalrsc1p0_zama16b1p0_zawrs1p0_zfa1p0_zfbfmin1p0_zfh1p0_zfhmin1p0_zca1p0_zcb1p0_zcd1p0_zcmop1p0_zba1p0_zbb1p0_zbs1p0_zkr1p0_zkt1p0_zvbb1p0_zvbc1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvfbfmin1p0_zvfbfwma1p0_zvfh1p0_zvfhmin1p0_zvkb1p0_zvkg1p0_zvkn1p0_zvknc1p0_zvkned1p0_zvkng1p0_zvknhb1p0_zvks1p0_zvksc1p0_zvksed1p0_zvksg1p0_zvksh1p0_zvkt1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0_supm1p0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.