[PATCH] D98574: [Sparc] Define the same macros for -mcpu=v9 as GCC on Linux

John Paul Adrian Glaubitz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 17 02:59:23 PDT 2021


glaubitz added a comment.

In D98574#2624558 <https://reviews.llvm.org/D98574#2624558>, @brad wrote:

> I do not immediately see why the other tests are failing, but at a bare minimum the following test from clang/test/Preprocessor/predefined-arch-macros.c will have to be updated..
>
>   // RUN: %clang -mcpu=v9 -E -dM %s -o - 2>&1 \
>   // RUN:     -target sparc-unknown-linux \
>   // RUN:   | FileCheck -match-full-lines %s -check-prefix=CHECK_SPARC-V9
>   // CHECK_SPARC-V9-NOT: #define __sparcv8 1
>   // CHECK_SPARC-V9-NOT: #define __sparcv8__ 1
>   // CHECK_SPARC-V9: #define __sparc_v9__ 1
>   // CHECK_SPARC-V9: #define __sparcv9 1
>   // CHECK_SPARC-V9: #define __sparcv9__ 1

Thanks, I agree these need to be adjusted.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98574/new/

https://reviews.llvm.org/D98574



More information about the cfe-commits mailing list