This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Refine pre-define macro tests
ClosedPublic

Authored by Jim on Mar 30 2021, 6:24 PM.

Details

Summary
  1. Undefined macro test for rv32i and rv64i.
    1. Reorder it with canonical order.
    2. Add missing undefined macro check.
    3. Append defined value to __riscv_a, __riscv_f and __riscv_c to distinguish with __riscv_arch_test, __riscv_cmodel_medlow and __riscv_float_abi_soft. They have the same prefix.
  2. Move abi macro test below f and d.
  3. Unify coding style for newline.

Diff Detail

Event Timeline

Jim created this revision.Mar 30 2021, 6:24 PM
Jim requested review of this revision.Mar 30 2021, 6:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2021, 6:24 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Mar 30 2021, 7:23 PM
This revision was automatically updated to reflect the committed changes.