[PATCH] D132538: [AArch64] Filter out invalid code model in frontend.

Hsiangkai Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 24 18:32:32 PDT 2022


HsiangKai added inline comments.


================
Comment at: clang/test/Driver/mcmodel.c:9
 // RUN: not %clang -c -mcmodel=lager %s 2>&1 | FileCheck --check-prefix=INVALID %s
+// RUN: %clang -target aarch64 -### -c -mcmodel=medium %s 2>&1 | FileCheck --check-prefix=AARCH64-MEDIUM %s
+// RUN: %clang -target aarch64 -### -c -mcmodel=kernel %s 2>&1 | FileCheck --check-prefix=AARCH64-KERNEL %s
----------------
paquette wrote:
> Do you need `not` in front of this? Can't remember.
I use `-###` in the test lines. It will not execute commands. I changed them to be consistent with the previous 'invalid' test lines.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132538



More information about the cfe-commits mailing list