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

commit r15-2434-gf40fd85c32c9ab4849065d0d14cd5a7ad67619b8
Author: Filip Kastl <fka...@suse.cz>
Date:   Wed Jul 31 13:40:45 2024 +0200

    testsuite: Adjust switch-exp-transform-3.c for 32bit
    
    32bit x86 CPUs won't natively support the FFS operation on a 64 bit
    type.  Therefore, I'm setting the long long int part of the
    switch-exp-transform-3.c test to only execute with 64bit targets.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/i386/switch-exp-transform-3.c: Set the long long
            int test to only execute with 64bit targets.
    
    Signed-off-by: Filip Kastl <fka...@suse.cz>

Diff:
---
 gcc/testsuite/gcc.target/i386/switch-exp-transform-3.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/switch-exp-transform-3.c 
b/gcc/testsuite/gcc.target/i386/switch-exp-transform-3.c
index c8fae70692e5..64a7b1461721 100644
--- a/gcc/testsuite/gcc.target/i386/switch-exp-transform-3.c
+++ b/gcc/testsuite/gcc.target/i386/switch-exp-transform-3.c
@@ -99,6 +99,8 @@ int unopt_unsigned_long(unsigned long bit_position)
     }
 }
 
+#ifdef __x86_64__
+
 int unopt_long_long(long long bit_position)
 {
     switch (bit_position)
@@ -145,4 +147,7 @@ int unopt_unsigned_long_long(unsigned long long 
bit_position)
     }
 }
 
-/* { dg-final { scan-tree-dump-times "Applying exponential index transform" 6 
"switchconv" } } */
+#endif
+
+/* { dg-final { scan-tree-dump-times "Applying exponential index transform" 4 
"switchconv" { target ia32 } } } */
+/* { dg-final { scan-tree-dump-times "Applying exponential index transform" 6 
"switchconv" { target { ! ia32 } } } } */

Reply via email to