[gcc(refs/users/meissner/heads/work250-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:9bd3f592c580b402f7b25c7c7e734418ed1985b3

commit 9bd3f592c580b402f7b25c7c7e734418ed1985b3
Author: Michael Meissner <[email protected]>
Date:   Thu Jun 25 21:29:59 2026 -0400

    Add future test support.
    
    2026-06-25  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 cab72c8a9e10..695bda9fefd5 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -8282,6 +8282,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 { } {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.