Debian Codegraph @

gcc/testsuite/gcc.target/s390/pr118835.c

raw
1 /* { dg-do compile { target int128 } } */
2 /* { dg-options "-O2" } */
3
4 /* During combine we may end up with patterns of the form
5
6 (set (reg:DI 66 [ _6 ])
7 (ashift:DI (reg:DI 72 [ x ])
8 (subreg:QI (and:TI (reg:TI 67 [ _1 ])
9 (const_wide_int 0x0aaaaaaaaaaaaaabf))
10 15)))
11
12 which should be rejected since the shift count does not trivially fit the
13 scheme of address operands. */
14
15 long
16 test (long x, int y)
17 {
18 __int128 z = 0xAAAAAAAAAAAAAABF;
19 z &= y;
20 return x << z;
21 }