All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 80266] New: Undefined operation in tgsi_ureg.c left shift of 1 by 31 places cannot be represented in type 'int'
@ 2014-06-20  5:46 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
       [not found] ` <bug-80266-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  0 siblings, 1 reply; 11+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2014-06-20  5:46 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 980 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=80266

          Priority: medium
            Bug ID: 80266
          Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
           Summary: Undefined operation in tgsi_ureg.c left shift of 1 by
                    31 places cannot be represented in type 'int'
          Severity: minor
    Classification: Unclassified
                OS: Linux (All)
          Reporter: zeccav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: 10.2
         Component: Drivers/DRI/nouveau
           Product: Mesa

In tgsi_ureg.c:1498
"if (ureg->vs_inputs[i/32] & (1 << (i%32))) {"
when i==31 then 1 << 31 may be computed.
With gcc option -std=c99 this is wrong because the result cannot be int.

Perhaps the right instruction is
"if (ureg->vs_inputs[i/32] & ((unsigned) 1 << (i%32))) {"

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2309 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-06-20 19:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20  5:46 [Bug 80266] New: Undefined operation in tgsi_ureg.c left shift of 1 by 31 places cannot be represented in type 'int' bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-80266-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2014-06-20  5:48   ` [Bug 80266] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20  9:50   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 11:53   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 18:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 18:18   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 18:45   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:03   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:16   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:17   ` [Bug 80266] Many instances of 1<<31, which is undefined in C99 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.