]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR86438] avoid too-long shift in test
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Apr 2019 12:44:46 +0000 (12:44 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Apr 2019 12:44:46 +0000 (12:44 +0000)
commit2659c6e18e9df657aeb4ce255709c25761c70c5e
treec409e115bd181377540b34531ab9dc62f872e152
parentd0cea156ba46edaf471a7b5aff211f291c6f8eb9
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270388 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr86438.c