[gcc(refs/users/meissner/heads/work252-sha)] Add future test support.
Michael Meissner via Gcc-cvs <[email protected]>
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:3c5d8ef68057d5f4569a75729d13fc743f16afb4 commit 3c5d8ef68057d5f4569a75729d13fc743f16afb4 Author: Michael Meissner <[email protected]> Date: Fri Jul 24 00:47:07 2026 -0400 Add future test support. 2026-07-24 Michael Meissner <[email protected]> gcc/testsuite/ * lib/target-supports.exp (check_effective_target_powerpc_future_ok): New target support. Diff: --- gcc/testsuite/lib/target-supports.exp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 57a6df4f83ba..4f3c6cabf345 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -8337,6 +8337,19 @@ proc check_htm_hw_available { } { } }] } + +# Return 1 if this is a PowerPC target supporting -mcpu=future + +proc check_effective_target_powerpc_future_ok { } { + return [check_no_compiler_messages powerpc_future_ok object { + unsigned long a, b, c; + int main (void) { + asm ("subdus %0,%1,%2" : "=r" (a) : "r" (b), "r" (c)); + return 0; + } + } "-mcpu=future"] +} + # Return 1 if this is a PowerPC target supporting -mcpu=cell. proc check_effective_target_powerpc_ppu_ok { } {