This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] New SPEC2017 macro and enhancements to run_specpp macro
ClosedPublic

Authored by naromero77 on Apr 29 2021, 10:19 PM.

Details

Summary

These changes are needed to support the wrf test which will be submitted in a seperate patch.

  • speccpu2017_run_specpp requires a target arguement.
  • Macro for requiring convert big-endian IO compiler flag.
  • Update pop2 test.

Diff Detail

Repository
rT test-suite

Event Timeline

naromero77 created this revision.Apr 29 2021, 10:19 PM
naromero77 requested review of this revision.Apr 29 2021, 10:19 PM
Meinersbur accepted this revision.Apr 30 2021, 8:52 AM
Meinersbur added inline comments.
External/SPEC/SpecCPU2017.cmake
376

[suggestion] Argument could be more self-explanatory or documented. Suggestion: ADD_SOURCES_TO_TARGET

(The SPECPP_ prefixes seem unnecessary, these are function arguments that don't clash with any namespace)

This revision is now accepted and ready to land.Apr 30 2021, 8:52 AM
naromero77 added inline comments.Apr 30 2021, 9:07 AM
External/SPEC/SpecCPU2017.cmake
376

Would this work?

cmake_parse_arguments(_arg "" "TARGET" "ADD_SRCS_TO_TARGET;DEFS" ${ARGN})
Meinersbur added inline comments.Apr 30 2021, 11:26 AM
External/SPEC/SpecCPU2017.cmake
376

ADD_SRCS_TO_TARGET doesn't sound like an option to list source files. SRCS_TO_BE_PROCESSED_AND_ADDED_TO_TARGET would match better, but unreasonable long.

Maybe just TARGET and SRCS and add to the description of speccpu2017_run_specpp that the command adds the result from specpp to TARGET as source files. The name speccpu2017_run_specpp itself doesn't indicate that.

  • Remove SPECPP from variable names.
  • Improve description of speccpu2017_run_specpp
Meinersbur accepted this revision.Apr 30 2021, 1:51 PM