vect: Fix vect_reduction_def check for odd/even widen mult [PR116142]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / bitint-69.c
blob5f89357678eca0052760dcda72ac8ac0eff2ca0e
1 /* PR libgcc/114755 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=c23" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
7 #if __BITINT_MAXWIDTH__ >= 255
8 _BitInt(65)
9 foo (void)
11 _BitInt(255) a = 0x040404040404040404040404wb;
12 _BitInt(65) b = -0xffffffffffffffffwb;
13 _BitInt(65) r = a % b;
14 return r;
16 #endif
18 int
19 main ()
21 #if __BITINT_MAXWIDTH__ >= 255
22 _BitInt(65) x = foo ();
23 if (x != 0x0404040408080808wb)
24 __builtin_abort ();
25 #endif