https://gcc.gnu.org/g:ef94615831e3ce431821cf93a41b2d405a6c01dc

commit ef94615831e3ce431821cf93a41b2d405a6c01dc
Author: Michael Meissner <[email protected]>
Date:   Thu Jul 16 15:28:03 2026 -0400

    Add future test support.
    
    2026-07-16  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 edd1290bd9e3..738dcdb930fe 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -8299,6 +8299,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 { } {

Reply via email to