From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 80266] New: Undefined operation in tgsi_ureg.c left shift of 1 by 31 places cannot be represented in type 'int' Date: Fri, 20 Jun 2014 05:46:58 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1397042353==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1397042353== Content-Type: multipart/alternative; boundary="1403243218.2cb80f8f0.19353"; charset="us-ascii" --1403243218.2cb80f8f0.19353 Date: Fri, 20 Jun 2014 05:46:58 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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. --1403243218.2cb80f8f0.19353 Date: Fri, 20 Jun 2014 05:46:58 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Priority medium
Bug ID 80266
Assignee nouveau@lists.freedesktop.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@gmail.com
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.
--1403243218.2cb80f8f0.19353-- --===============1397042353== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============1397042353==--