Bug 107972

Summary: [SKL] 64-bit integer support seems pretty broken
Product: Mesa Reporter: Ian Romanick <idr>
Component: Drivers/DRI/i965Assignee: Intel 3D Bugs Mailing List <intel-3d-bugs>
Status: RESOLVED NOTOURBUG QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Test case.

Description Ian Romanick 2018-09-18 08:51:05 UTC
Created attachment 141627 [details]
Test case.

The very simple attached test fails.  GDB sure thinks 0x8000000000000000ll - 0x8000000000000001ll is -1ll. :(
Comment 1 Ian Romanick 2018-09-18 09:22:20 UTC
It seems the problem is that strtoll clamps to INT64_MAX.  This is very frustrating because strtol does not clamp.  It produces the raw bit pattern.

When I send out the test cases where I actually encountered this problem, I will send out a fix to tests/shaders/parser_utils.c.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.