-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from tum-ei-eda/philippvk-new
Merge latest changes
- Loading branch information
Showing
64 changed files
with
4,375 additions
and
1,297 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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,76 @@ | ||
--- | ||
riscv: | ||
xlen: 32 | ||
features: | ||
- m | ||
- fast-unaligned-access | ||
legalization: | ||
gisel: | ||
ops: | ||
# TODO: simd shift? | ||
# TODO: rotate left/right? | ||
# - name: [G_SMAX, G_UMAX, G_SMIN, G_UMIN, G_ABS] | ||
# types: [s32] | ||
# onlyif: [HasVendorXCValu] | ||
# - name: [G_ADD, G_SUB, G_AND, G_OR, G_XOR, G_ASHR, G_LSHR, G_SHL] | ||
# types: [v4i8, v2i16] | ||
# onlyif: [HasVendorXCVsimd] | ||
# - name: G_INSERT_VECTOR_ELT | ||
# types: [v4i8, v2i16] | ||
# onlyif: [HasVendorXCVsimd] | ||
# - name: [G_ADD] | ||
# types: [v4i8, v2i16] | ||
# onlyif: [HasExtmyextsimd] | ||
- name: [G_ADD] | ||
types: [s16, s32] | ||
onlyif: [HasExtmyextalu] | ||
# - name: [G_ADD, G_SMAX] | ||
# types: [v4i8, v2i16] | ||
# onlyif: [HasExtRV32Zpn] | ||
# - name: [G_SHL, G_SMIN, G_SUB] | ||
# types: [v4i8] | ||
# onlyif: [HasExtRV32Zpn] | ||
# - name: [G_SMIN, G_SMAX] # TODO: CLZ, REV, CMIX | ||
# types: [s32] | ||
# onlyif: [HasExtRV32Zbpo] | ||
# # TODO: RV32Zpsfoperand (register pairs) | ||
# TODO: G_BITCAST | ||
transform_info: | ||
shouldFoldTerminatingConditionAfterLSR: true | ||
prefersVectorizedAddressing: false | ||
enableInterleavedAccessVectorization: true | ||
enableMaskedInterleavedAccessVectorization: null | ||
enableScalableVectorization: false | ||
preferEpilogueVectorization: null | ||
supportsScalableVectors: false | ||
# getInliningThresholdMultiplier: ? | ||
# getInliningCostBenefitAnalysisSavingsMultiplier: ? | ||
# getInliningCostBenefitAnalysisProfitableMultiplier: ? | ||
# getInlinerVectorBonusPercent: ? | ||
# getFlatAddressSpace: ? | ||
# getMinVectorRegisterBitWidth: ? | ||
# getCacheLineSize: ? | ||
# getPrefetchDistance: ? | ||
# getMaxPrefetchIterationsAhead: ? | ||
# getMaxMemIntrinsicInlineSizeThreshold: ? | ||
# getAtomicMemIntrinsicMaxElementSize: ? | ||
# getMaxNumArgs: ? | ||
# getGISelRematGlobalCost: ? | ||
# getMinTripCountTailFoldingThreshold: ? | ||
# getMaxVScale: ? | ||
# getVScaleForTuning: ? | ||
# getPredictableBranchThreshold: ? | ||
# isSingleThreaded: ? | ||
# isNumRegsMajorCostOfLSR: ? | ||
# canMacroFuseCmp: ? | ||
# enableOrderedReductions: ? | ||
# LSRWithInstrQueries: ? | ||
# useAA: ? | ||
# shouldBuildLookupTables: ? | ||
# shouldBuildRelLookupTables: ? | ||
# supportsEfficientVectorElementLoadStore: ? | ||
# supportsTailCalls: ? | ||
# enableSelectOptimize: ? | ||
# isFPVectorizationPotentiallyUnsafe: ? | ||
# isVScaleKnownToBeAPowerOfTwo: ? | ||
# enableWritePrefetching: ? |
This file contains 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,5 @@ | ||
--- | ||
test: | ||
paths: [] | ||
# - MC/RISCV | ||
# - CodeGen/RISCV |
This file contains 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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
--- | ||
extensions: | ||
XCoreVAlu: | ||
feature: XCVAlu | ||
feature: XCValu | ||
arch: xcvalu | ||
version: "1.0" | ||
experimental: false | ||
vendor: true | ||
# patches: [] | ||
passes: | ||
per_model: | ||
XCoreVAlu: | ||
skip: [riscv_features, riscv_isa_info, riscv_instr_formats, riscv_instr_info, behav_to_pat] | ||
override: | ||
behav_to_pat: | ||
patterns: false |
This file contains 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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
--- | ||
extensions: | ||
XCoreVBitmanip: | ||
feature: XCVBitmanip | ||
feature: XCVbitmanip | ||
arch: xcvbitmanip | ||
version: "1.0" | ||
experimental: false | ||
vendor: true | ||
# patches: [] | ||
passes: | ||
per_model: | ||
XCoreVBitmanip: | ||
skip: [riscv_features, riscv_isa_info, riscv_instr_formats, riscv_instr_info, behav_to_pat] | ||
override: | ||
behav_to_pat: | ||
patterns: false |
This file contains 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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
--- | ||
extensions: | ||
XCoreVBranchImmediate: | ||
feature: XCVBi | ||
feature: XCVbi | ||
arch: xcvbi | ||
version: "1.0" | ||
experimental: false | ||
vendor: true | ||
# patches: [] | ||
passes: | ||
per_model: | ||
XCoreVBranchImmediate: | ||
skip: [riscv_features, riscv_isa_info, riscv_instr_formats, riscv_instr_info, behav_to_pat] | ||
override: | ||
behav_to_pat: | ||
patterns: false |
This file contains 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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
--- | ||
extensions: | ||
XCoreVMac: | ||
feature: XCVMac | ||
feature: XCVmac | ||
arch: xcvmac | ||
version: "1.0" | ||
experimental: false | ||
vendor: true | ||
# patches: [] | ||
passes: | ||
per_model: | ||
XCoreVMac: | ||
skip: [riscv_features, riscv_isa_info, riscv_instr_formats, riscv_instr_info, behav_to_pat] | ||
override: | ||
behav_to_pat: | ||
patterns: false |
This file contains 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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
--- | ||
extensions: | ||
XCoreVMem: | ||
feature: XCVMem | ||
feature: XCVmem | ||
arch: xcvmem | ||
version: "1.0" | ||
experimental: false | ||
vendor: true | ||
# patches: [] | ||
passes: | ||
per_model: | ||
XCoreVMem: | ||
skip: [riscv_features, riscv_isa_info, riscv_instr_formats, riscv_instr_info, behav_to_pat] | ||
override: | ||
behav_to_pat: | ||
patterns: false |
This file contains 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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
--- | ||
extensions: | ||
XCoreVSimd: | ||
feature: XCVSimd | ||
feature: XCVsimd | ||
arch: xcvsimd | ||
version: "1.0" | ||
experimental: false | ||
vendor: true | ||
# patches: [] | ||
passes: | ||
per_model: | ||
XCoreVSimd: | ||
skip: [riscv_features, riscv_isa_info, riscv_instr_formats, riscv_instr_info, behav_to_pat] | ||
override: | ||
behav_to_pat: | ||
patterns: false |
This file contains 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 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,16 @@ | ||
// RUN: clang -cc1 -triple riscv32 -target-feature +m -target-feature +xcorevnand -mllvm -global-isel=1 -S -O3 %s -o - \ | ||
// RUN: | FileCheck %s -check-prefix=CHECK | ||
|
||
// CHECK-LABEL: nand_bitwise_s32: | ||
// CHECK-COUNT-1: cv.nand.bitwise {{.*}} | ||
signed int nand_bitwise_s32(signed int a, signed int b) | ||
{ | ||
return ~(a & b); | ||
} | ||
|
||
// CHECK-LABEL: nand_bitwise_u32: | ||
// CHECK-COUNT-1: cv.nand.bitwise {{.*}} | ||
unsigned int nand_bitwise_u32(unsigned int a, unsigned int b) | ||
{ | ||
return ~(a & b); | ||
} |
Oops, something went wrong.