-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[NFC] Reduce number of run steps in ppc rop-protect test. #139607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,10 @@ | ||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=pwr10 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP | ||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=power10 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP | ||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=pwr9 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP | ||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=power9 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP | ||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=pwr8 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't feel super strongly either way, but should we keep the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The P10 run step uses the |
||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=power8 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=HASROP | ||
|
|
||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=pwr7 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=NOROP | ||
| // RUN: not %clang -target powerpc64le-unknown-linux-gnu -fsyntax-only \ | ||
| // RUN: -mcpu=power7 -mrop-protect %s 2>&1 | FileCheck %s --check-prefix=NOROP | ||
|
|
||
| #ifdef __ROP_PROTECT__ | ||
| static_assert(false, "ROP Protect enabled"); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we removing P9 as it should be covered by both P8/P10? Or did we also mean to keep a P9 line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. We have one test for P8 which is the first CPU version supported, and one test for P10 which is a later CPU that also supports it. Adding a P9 doesn't really add any coverage IMO.