gcc/testsuite/gcc.target/i386/pr110717-2.c
raw| 1 | /* PR target/110717 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | #ifdef __SIZEOF_INT128__ |
| 6 | #define type __int128 |
| 7 | #define N 59 |
| 8 | #else |
| 9 | #define type long long |
| 10 | #define N 27 |
| 11 | #endif |
| 12 | |
| 13 | struct S { type a : sizeof (type) * __CHAR_BIT__ - N; }; |
| 14 | |
| 15 | unsigned type bar (struct S *p) |
| 16 | { |
| 17 | return p->a; |
| 18 | } |
| 19 | |
| 20 | /* { dg-final { scan-assembler-not "andl" } } */ |