diff options
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr82192.c')
-rw-r--r-- | SingleSource/Regression/C/gcc-c-torture/execute/pr82192.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr82192.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr82192.c new file mode 100644 index 00000000..9e56e203 --- /dev/null +++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr82192.c @@ -0,0 +1,22 @@ +/* PR rtl-optimization/82192 */ + +unsigned long long int a = 0x95dd3d896f7422e2ULL; +struct S { unsigned int m : 13; } b; + +__attribute__((noinline, noclone)) void +foo (void) +{ + b.m = ((unsigned) a) >> (0x644eee9667723bf7LL + | a & ~0xdee27af8U) - 0x644eee9667763bd8LL; +} + +int +main () +{ + if (__INT_MAX__ != 0x7fffffffULL) + return 0; + foo (); + if (b.m != 0) + __builtin_abort (); + return 0; +} |