[gcc(refs/users/meissner/heads/work253-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:7eb135d2293d524ee6fd16590fdaa1e57625b595

commit 7eb135d2293d524ee6fd16590fdaa1e57625b595
Author: Michael Meissner <[email protected]>
Date:   Mon Jul 27 01:12:28 2026 -0400

    Add future test support.
    
    2026-07-27  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 { } {
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.