https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116488

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #12 from Mikael Pettersson <mikpelinux at gmail dot com> ---
(In reply to Georg-Johann Lay from comment #11)
> gcc.dg/torture/pr116488.c fails on avr.
> ...
> 1) There is short h >> 16 which is UB when short is a 16-bit type and int is
> a 16-bit type ?
> 
> 2) int may be a 16-bit type, so maybe int a, b should be __INT32_TYPE__ or
> the test should dg-require-int32-plus or similar.

I see the same failure for my out-of-tree int16 target. I locally worked around
it by adding

/* { dg-skip-if "not 16-bit clean" int16 } */

but if the test could be made 16-bit clean that would be even better.

Reply via email to