[PR86438] avoid too-long shift in test
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 16 Apr 2019 12:44:46 +0000 (12:44 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 16 Apr 2019 12:44:46 +0000 (12:44 +0000)
commit1ce6a0f5b05487678082f205d1b14a207adf9970
treec409e115bd181377540b34531ab9dc62f872e152
parentb9bc3b128c02de33783a1729709cf44dd42bd05e
[PR86438] avoid too-long shift in test

The test fell back to long long and long when __int128 is not
available, but it assumed sizeof(long) < sizeof(long long) because of
a shift count that would be out of range for a long long if their
widths are the same.  Fixed by splitting it up into two shifts.

for  gcc/testsuite/ChangeLog

PR rtl-optimization/86438
* gcc.dg/torture/pr86438.c: Split up too-wide shift.

From-SVN: r270388
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr86438.c