testsuite: Add testcase for already fixed PR [PR116093]
This testcase got fixed with r15-9397 PR119722 fix. 2025-04-16 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/116093 * gcc.dg/bitint-122.c: New test.
This commit is contained in:
parent
31e16c8b75
commit
45a708d7bf
1 changed files with 20 additions and 0 deletions
20
gcc/testsuite/gcc.dg/bitint-122.c
Normal file
20
gcc/testsuite/gcc.dg/bitint-122.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* PR tree-optimization/116093 */
|
||||
/* { dg-do run { target bitint } } */
|
||||
/* { dg-options "-Og -ftree-vrp -fno-tree-dce" } */
|
||||
|
||||
#if __BITINT_MAXWIDTH__ >= 129
|
||||
char
|
||||
foo (int a, _BitInt (129) b, char c)
|
||||
{
|
||||
return c << (5 / b % (0xdb75dbf5 | a));
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#if __BITINT_MAXWIDTH__ >= 129
|
||||
if (foo (0, 6, 1) != 1)
|
||||
__builtin_abort ();
|
||||
#endif
|
||||
}
|
Loading…
Add table
Reference in a new issue