[RISCV] Refine pre-define macro tests
authorJim Lin <tclin914@gmail.com>
Wed, 31 Mar 2021 05:11:41 +0000 (13:11 +0800)
committerJim Lin <tclin914@gmail.com>
Wed, 31 Mar 2021 06:06:20 +0000 (14:06 +0800)
commit32ca5a037ab9191d570bf9b5e0f13e28c3db27d9
treead6c375f8a4f37c9cfd973c3dc47fd878d5d3a5a
parentec235dd3556d9879b0ec58ebd6009904d0ef0d24
[RISCV] Refine pre-define macro tests

1. Undefined macro test for rv32i and rv64i.
  a. Reorder it with canonical order.
  b. Add missing  undefined macro check.
  c. 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.

Reviewed By: HsiangKai

Differential Revision: https://reviews.llvm.org/D99631
clang/test/Preprocessor/riscv-target-features.c