[gcc(refs/users/meissner/heads/work255-sha)] Add future test support.
Michael Meissner via Gcc-cvs <[email protected]> Mon, 3 Aug 2026 19:59:52 +0000 (GMT)
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:fdcf70d51bd28085c6f42ee9194155e75e32ff8a commit fdcf70d51bd28085c6f42ee9194155e75e32ff8a Author: Michael Meissner <[email protected]> Date: Mon Aug 3 15:59:28 2026 -0400 Add future test support. 2026-08-03 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 42cbb5ce3df0..52d1bfe75d64 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -8418,6 +8418,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 { } {