]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Adjust switch-exp-transform-3.c for 32bit
authorFilip Kastl <fkastl@suse.cz>
Wed, 31 Jul 2024 11:40:45 +0000 (13:40 +0200)
committerFilip Kastl <fkastl@suse.cz>
Wed, 31 Jul 2024 11:40:45 +0000 (13:40 +0200)
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 <fkastl@suse.cz>
gcc/testsuite/gcc.target/i386/switch-exp-transform-3.c

index c8fae70692e522d7aa4317edb46c974e8756536d..64a7b14617219bf634fe87e81e1e622b2a8727d2 100644 (file)
@@ -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 } } } } */