Bug 95363 - [11 regression] bb-slp-pr95271.c fails on arm since gc0e27f72358794692e367363940c6383e9ad1e45
Summary: [11 regression] bb-slp-pr95271.c fails on arm since gc0e27f72358794692e367363...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 11.0
: P3 normal
Target Milestone: 11.0
Assignee: Richard Biener
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-27 11:41 UTC by Christophe Lyon
Modified: 2020-05-28 07:46 UTC (History)
0 users

See Also:
Host:
Target: arm
Build:
Known to work:
Known to fail:
Last reconfirmed: 2020-05-28 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Lyon 2020-05-27 11:41:08 UTC
Since gc0e27f72358794692e367363940c6383e9ad1e45, I've noticed that gcc.dg/vect/bb-slp-pr95271.c fails on arm (that's when it was introduced):

FAIL: gcc.dg/vect/bb-slp-pr95271.c (test for excess errors)
Excess errors:
/gcc/testsuite/gcc.dg/vect/bb-slp-pr95271.c:13:21: warning: left shift count >= width of type [-Wshift-count-overflow]
/gcc/testsuite/gcc.dg/vect/bb-slp-pr95271.c:13:60: warning: left shift count >= width of type [-Wshift-count-overflow]
/gcc/testsuite/gcc.dg/vect/bb-slp-pr95271.c:14:38: warning: left shift count >= width of type [-Wshift-count-overflow]
/gcc/testsuite/gcc.dg/vect/bb-slp-pr95271.c:15:38: warning: left shift count >= width of type [-Wshift-count-overflow]

Do you want to use 'long long' instead of 'long' for variable 'd'?
Comment 1 Richard Biener 2020-05-28 07:33:41 UTC
Whoops - see them on x86_64 with -m32 as well.
Comment 2 GCC Commits 2020-05-28 07:46:36 UTC
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:07d77cc23953335c3539e2a86fc4a052d9845524

commit r11-680-g07d77cc23953335c3539e2a86fc4a052d9845524
Author: Richard Biener <rguenther@suse.de>
Date:   Thu May 28 09:44:32 2020 +0200

    testsuite/95363 - fix gcc.dg/vect/bb-slp-pr95271.c for ilp32
    
    This fixes the testcase to avoid out of bound shifts on ilp32 targets.
    
    2020-05-28  Richard Biener  <rguenther@suse.de>
    
            PR testsuite/95363
            * gcc.dg/vect/bb-slp-pr95271.c: Fix on ilp32 targets.
Comment 3 Richard Biener 2020-05-28 07:46:45 UTC
Fixed.