aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Kastl <fkastl@suse.cz>2024-07-31 13:40:45 +0200
committerFilip Kastl <fkastl@suse.cz>2024-07-31 13:40:45 +0200
commitf40fd85c32c9ab4849065d0d14cd5a7ad67619b8 (patch)
tree568d86ba7e98b28f279cb448d7b6ca39e81a673a
parent996c2e2144c4a534b65424170c596dcbf44ba6db (diff)
downloadgcc-f40fd85c32c9ab4849065d0d14cd5a7ad67619b8.zip
gcc-f40fd85c32c9ab4849065d0d14cd5a7ad67619b8.tar.gz
gcc-f40fd85c32c9ab4849065d0d14cd5a7ad67619b8.tar.bz2
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 <fkastl@suse.cz>
-rw-r--r--gcc/testsuite/gcc.target/i386/switch-exp-transform-3.c7
1 files changed, 6 insertions, 1 deletions
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 c8fae70..64a7b14 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 } } } } */