This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] Add Architecture Detection for RISC-V
ClosedPublic

Authored by lenary on Oct 9 2019, 5:36 AM.

Details

Summary

The LLVM test suite has its own way of detecting the system
architecture. This adds support in that file for detecting RISC-V.

This will eventually cause the ARCH variable to be populated.

We use ARCH="riscv64" to identify 64-bit RISC-V, and ARCH="riscv32" to identify 32-bit
RISC-V, so that attempting to detect "riscv" in the ARCH variable will match any version of RISC-V.

Diff Detail

Event Timeline

lenary created this revision.Oct 9 2019, 5:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2019, 5:36 AM
luismarques accepted this revision.Oct 9 2019, 6:36 AM

LGTM. I suggest slightly tweaking the commit message to make it clear that it's the str message that is prefix matched for riscv.

This revision is now accepted and ready to land.Oct 9 2019, 6:36 AM
lenary edited the summary of this revision. (Show Details)Oct 9 2019, 8:30 AM
This revision was automatically updated to reflect the committed changes.