testsuite: RISC-V: Ignore pr118170.c for E ABI
[official-gcc.git] / gcc / testsuite / gcc.dg / pr103431.c
blob09f224a3903758f940eae5789937df754d2e15d9
1 /* PR middle-end/103431 */
2 /* { dg-do run { target int128 } } */
3 /* { dg-options "-O -fno-tree-bit-ccp -fno-tree-dominator-opts" } */
5 __attribute__((noipa))
6 void foo (unsigned short a)
8 __uint128_t b = 5;
9 int size = __SIZEOF_INT128__ * __CHAR_BIT__ - 1;
10 a /= 0xfffffffd;
11 __uint128_t c = (b << (a & size) | b >> (-(a & size) & size));
12 if (c != 5)
13 __builtin_abort ();
16 int
17 main ()
19 foo (0);
20 return 0;