On Wed, Jul 31, 2024 at 12:02:08PM +0200, Filip Kastl wrote: > 32bit x86 CPUs won't natively support the FFS operation on a 64 bit > type. Therefore, the switch-exp-transform-3.c test will always fail > with a 32bit target. I'm fixing my mistake. > > gcc/testsuite/ChangeLog: > > * gcc.target/i386/switch-exp-transform-3.c: Remove code testing > that the exponential index transform is able to handle long > long int.
But for -m64 it does and it is good to test even that. Can't you wrap the long long stuff with #ifdef __x86_64__ and do /* { 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 } } } } */ or so? Jakub