[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 10:57:01 PST 2018


erichkeane added inline comments.


================
Comment at: test/Misc/target-invalid-cpu-note.c:1
+// RUN: not %clang_cc1 -triple armv5--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix ARM
+// ARM: error: unknown target CPU 'not-a-cpu'
----------------
erichkeane wrote:
> Hahnfeld wrote:
> > Is there a reason you don't use `-verify=<prefix>` in this test? That's what I've usually seen for checking errors and notes...
> Um... wow... TIL.
Sadly, -verify= doesn't seem to have a way to specify things that happen without a line-number, so I wasn't able to do it :/


https://reviews.llvm.org/D42978





More information about the cfe-commits mailing list