From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] New: R600/SI: Cannot select store with truncate to 32-bit
Date: Tue, 18 Jun 2013 00:05:46 +0000
Message-ID:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1704234988=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 3397FE5C99
for ;
Mon, 17 Jun 2013 17:05:47 -0700 (PDT)
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1704234988==
Content-Type: multipart/alternative; boundary="1371513947.FacA0.335"; charset="us-ascii"
--1371513947.FacA0.335
Date: Tue, 18 Jun 2013 00:05:47 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
Priority: medium
Bug ID: 65873
Assignee: dri-devel@lists.freedesktop.org
Summary: R600/SI: Cannot select store with truncate to 32-bit
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: awatry@gmail.com
Hardware: Other
Status: NEW
Version: git
Component: Drivers/Gallium/radeonsi
Product: Mesa
Created attachment 80970
--> https://bugs.freedesktop.org/attachment.cgi?id=80970&action=edit
Piglit test that triggers the error on SI
Running the attached piglit CL test, I'm getting the following on R600/SI
(Pitcairn, 7850):
LLVM ERROR: Cannot select: 0x2add8b0: ch = store 0x2add7b0, 0x2adcfb0,
0x2adc640, 0x2adbd40 [ORD=4] [ID=17]
0x2adcfb0: i64,ch = load 0x20468b8, 0x2add1b0, 0x2adbd40 [ORD=1] [ID=14]
0x2add1b0: i64 = add 0x2adc140, 0x2adc540 [ORD=1] [ID=11]
0x2adc140: i64,ch = load 0x20468b8, 0x2adc040, 0x2adbd40
[ID=9]
0x2adc040: i64 = add 0x2adba40, 0x2adbf40 [ID=7]
0x2adba40: i64,ch = CopyFromReg 0x20468b8, 0x2adb940 [ID=6]
0x2adb940: i64 = Register %vreg0 [ID=1]
0x2adbf40: i64 = Constant<44> [ID=4]
0x2adbd40: i64 = undef [ID=3]
0x2adc540: i64 = Constant<4> [ID=5]
0x2adbd40: i64 = undef [ID=3]
0x2adc640: i64 = add 0x2adbe40, 0x2adc540 [ORD=4] [ID=13]
0x2adbe40: i64,ch = load 0x20468b8, 0x2adbc40, 0x2adbd40
[ID=10]
0x2adbc40: i64 = add 0x2adba40, 0x2adbb40 [ID=8]
0x2adba40: i64,ch = CopyFromReg 0x20468b8, 0x2adb940 [ID=6]
0x2adb940: i64 = Register %vreg0 [ID=1]
0x2adbb40: i64 = Constant<36> [ID=2]
0x2adbd40: i64 = undef [ID=3]
0x2adc540: i64 = Constant<4> [ID=5]
0x2adbd40: i64 = undef [ID=3]
I'll attach a dump from llc -debug-only=isel in a minute.
--
You are receiving this mail because:
You are the assignee for the bug.
--1371513947.FacA0.335
Date: Tue, 18 Jun 2013 00:05:47 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Priority |
medium
|
Bug ID |
65873
|
Assignee |
dri-devel@lists.freedesktop.org
|
Summary |
R600/SI: Cannot select store with truncate to 32-bit
|
Severity |
normal
|
Classification |
Unclassified
|
OS |
Linux (All)
|
Reporter |
awatry@gmail.com
|
Hardware |
Other
|
Status |
NEW
|
Version |
git
|
Component |
Drivers/Gallium/radeonsi
|
Product |
Mesa
|
Created attachment 80970 [details]
Piglit test that triggers the error on SI
Running the attached piglit CL test, I'm getting the following on R600/SI
(Pitcairn, 7850):
LLVM ERROR: Cannot select: 0x2add8b0: ch = store 0x2add7b0, 0x2adcfb0,
0x2adc640, 0x2adbd40<ST4[%out+4], trunc to i32> [ORD=4] [ID=17]
0x2adcfb0: i64,ch = load 0x20468b8, 0x2add1b0, 0x2adbd40<LD4[%mem+4], zext
from i32> [ORD=1] [ID=14]
0x2add1b0: i64 = add 0x2adc140, 0x2adc540 [ORD=1] [ID=11]
0x2adc140: i64,ch = load 0x20468b8, 0x2adc040, 0x2adbd40<LD8[undef]>
[ID=9]
0x2adc040: i64 = add 0x2adba40, 0x2adbf40 [ID=7]
0x2adba40: i64,ch = CopyFromReg 0x20468b8, 0x2adb940 [ID=6]
0x2adb940: i64 = Register %vreg0 [ID=1]
0x2adbf40: i64 = Constant<44> [ID=4]
0x2adbd40: i64 = undef [ID=3]
0x2adc540: i64 = Constant<4> [ID=5]
0x2adbd40: i64 = undef [ID=3]
0x2adc640: i64 = add 0x2adbe40, 0x2adc540 [ORD=4] [ID=13]
0x2adbe40: i64,ch = load 0x20468b8, 0x2adbc40, 0x2adbd40<LD8[undef]>
[ID=10]
0x2adbc40: i64 = add 0x2adba40, 0x2adbb40 [ID=8]
0x2adba40: i64,ch = CopyFromReg 0x20468b8, 0x2adb940 [ID=6]
0x2adb940: i64 = Register %vreg0 [ID=1]
0x2adbb40: i64 = Constant<36> [ID=2]
0x2adbd40: i64 = undef [ID=3]
0x2adc540: i64 = Constant<4> [ID=5]
0x2adbd40: i64 = undef [ID=3]
I'll attach a dump from llc -debug-only=isel in a minute.
You are receiving this mail because:
- You are the assignee for the bug.
--1371513947.FacA0.335--
--===============1704234988==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1704234988==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Tue, 18 Jun 2013 00:06:48 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1486791245=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 3C686E5C99
for ;
Mon, 17 Jun 2013 17:06:48 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1486791245==
Content-Type: multipart/alternative; boundary="1371514008.A441b3E0.435"; charset="us-ascii"
--1371514008.A441b3E0.435
Date: Tue, 18 Jun 2013 00:06:48 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #1 from Aaron Watry ---
Created attachment 80971
--> https://bugs.freedesktop.org/attachment.cgi?id=80971&action=edit
LLVM assembly that is produced from the vload-int.cl test case
--
You are receiving this mail because:
You are the assignee for the bug.
--1371514008.A441b3E0.435
Date: Tue, 18 Jun 2013 00:06:48 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
You are receiving this mail because:
- You are the assignee for the bug.
--1371514008.A441b3E0.435--
--===============1486791245==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1486791245==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Tue, 18 Jun 2013 00:08:14 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0079126109=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 8B869E5C99
for ;
Mon, 17 Jun 2013 17:08:14 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0079126109==
Content-Type: multipart/alternative; boundary="1371514094.A1Ad5C10.559"; charset="us-ascii"
--1371514094.A1Ad5C10.559
Date: Tue, 18 Jun 2013 00:08:14 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #2 from Aaron Watry ---
Created attachment 80972
--> https://bugs.freedesktop.org/attachment.cgi?id=80972&action=edit
Output from llc -debug-only=isel --march=r600 --mcpu=verde < vload-int.ll
--
You are receiving this mail because:
You are the assignee for the bug.
--1371514094.A1Ad5C10.559
Date: Tue, 18 Jun 2013 00:08:14 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
You are receiving this mail because:
- You are the assignee for the bug.
--1371514094.A1Ad5C10.559--
--===============0079126109==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============0079126109==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Tue, 18 Jun 2013 16:56:27 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1880342484=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 6A51AE61E8
for ;
Tue, 18 Jun 2013 09:56:27 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1880342484==
Content-Type: multipart/alternative; boundary="1371574587.0bA0ddC1.30830"; charset="us-ascii"
--1371574587.0bA0ddC1.30830
Date: Tue, 18 Jun 2013 16:56:27 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #3 from Tom Stellard ---
These patches should fix the issue:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130617/178156.html
The first patch is unrelated to the bug, but it is required in order to prevent
the test case in the second patch from crashing on Cayman. I've tested this on
llc, can you verify it works on real hardware.
--
You are receiving this mail because:
You are the assignee for the bug.
--1371574587.0bA0ddC1.30830
Date: Tue, 18 Jun 2013 16:56:27 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
You are receiving this mail because:
- You are the assignee for the bug.
--1371574587.0bA0ddC1.30830--
--===============1880342484==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1880342484==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Tue, 18 Jun 2013 20:17:46 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1843479929=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 4FE4EE5EC7
for ;
Tue, 18 Jun 2013 13:17:46 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1843479929==
Content-Type: multipart/alternative; boundary="1371586666.ddA14cF70.31032"; charset="us-ascii"
--1371586666.ddA14cF70.31032
Date: Tue, 18 Jun 2013 20:17:45 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #4 from Aaron Watry ---
The good news is that the store error is gone...
Now I get a load error :/
LLVM ERROR: Cannot select: 0x2c92af0: i64,ch = load 0x21fe0c8, 0x2c924f0,
0x2c921f0 [ID=15]
0x2c924f0: i64 = add 0x2c91ef0, 0x2c923f0 [ID=13]
0x2c91ef0: i64,ch = CopyFromReg 0x21fe0c8, 0x2c91df0 [ID=12]
0x2c91df0: i64 = Register %vreg0 [ID=1]
0x2c923f0: i64 = Constant<44> [ID=4]
0x2c921f0: i64 = undef [ID=3]
I'll attach the llvm assembly in a follow-up
--
You are receiving this mail because:
You are the assignee for the bug.
--1371586666.ddA14cF70.31032
Date: Tue, 18 Jun 2013 20:17:46 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 4
on bug 65873
from Aaron Watry
The good news is that the store error is gone...
Now I get a load error :/
LLVM ERROR: Cannot select: 0x2c92af0: i64,ch = load 0x21fe0c8, 0x2c924f0,
0x2c921f0<LD4[undef](align=8), zext from i32> [ID=15]
0x2c924f0: i64 = add 0x2c91ef0, 0x2c923f0 [ID=13]
0x2c91ef0: i64,ch = CopyFromReg 0x21fe0c8, 0x2c91df0 [ID=12]
0x2c91df0: i64 = Register %vreg0 [ID=1]
0x2c923f0: i64 = Constant<44> [ID=4]
0x2c921f0: i64 = undef [ID=3]
I'll attach the llvm assembly in a follow-up
You are receiving this mail because:
- You are the assignee for the bug.
--1371586666.ddA14cF70.31032--
--===============1843479929==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1843479929==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Tue, 18 Jun 2013 20:19:25 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1432879396=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 95CBCE6123
for ;
Tue, 18 Jun 2013 13:19:25 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1432879396==
Content-Type: multipart/alternative; boundary="1371586765.bbee18a0.31239"; charset="us-ascii"
--1371586765.bbee18a0.31239
Date: Tue, 18 Jun 2013 20:19:25 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
Aaron Watry changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #80971|0 |1
is obsolete| |
--- Comment #5 from Aaron Watry ---
Created attachment 81037
--> https://bugs.freedesktop.org/attachment.cgi?id=81037&action=edit
LLVM Assembly that is produced from vload-int.cl (after first patch)
--
You are receiving this mail because:
You are the assignee for the bug.
--1371586765.bbee18a0.31239
Date: Tue, 18 Jun 2013 20:19:25 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Aaron Watry
changed
bug 65873
What |
Removed |
Added |
Attachment #80971 is obsolete |
|
1
|
You are receiving this mail because:
- You are the assignee for the bug.
--1371586765.bbee18a0.31239--
--===============1432879396==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1432879396==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Tue, 18 Jun 2013 20:20:15 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1997805973=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 1749DE6232
for ;
Tue, 18 Jun 2013 13:20:15 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1997805973==
Content-Type: multipart/alternative; boundary="1371586815.8Ad1FE810.31376"; charset="us-ascii"
--1371586815.8Ad1FE810.31376
Date: Tue, 18 Jun 2013 20:20:15 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
Aaron Watry changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #80972|0 |1
is obsolete| |
--- Comment #6 from Aaron Watry ---
Created attachment 81038
--> https://bugs.freedesktop.org/attachment.cgi?id=81038&action=edit
Output from llc -debug-only=isel --march=r600 --mcpu=verde < vload-int.ll
--
You are receiving this mail because:
You are the assignee for the bug.
--1371586815.8Ad1FE810.31376
Date: Tue, 18 Jun 2013 20:20:15 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Aaron Watry
changed
bug 65873
What |
Removed |
Added |
Attachment #80972 is obsolete |
|
1
|
You are receiving this mail because:
- You are the assignee for the bug.
--1371586815.8Ad1FE810.31376--
--===============1997805973==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1997805973==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Thu, 27 Jun 2013 17:26:53 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1407990605=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 14BAEE5CB5
for ;
Thu, 27 Jun 2013 10:26:53 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1407990605==
Content-Type: multipart/alternative; boundary="1372354013.D0e721.1660"; charset="us-ascii"
--1372354013.D0e721.1660
Date: Thu, 27 Jun 2013 17:26:53 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #7 from Tom Stellard ---
The SI backend needs to be fixed so it can handle zext i64 loads, but there is
also a bug in libclc. The vload implementation assumes pointer types are
32-bit:
define <2 x i32> @__clc_vload2_impl_i32__global(i32 %offset, i32 addrspace(1)*
nocapture %addr) nounwind readonly alwaysinline {
%1 = ptrtoint i32 addrspace(1)* %addr to i32
%2 = add i32 %1, %offset
%3 = inttoptr i32 %2 to <2 x i32> addrspace(1)*
%4 = load <2 x i32> addrspace(1)* %3, align 4, !tbaa !3
ret <2 x i32> %4
}
Pointers on SI are 64-bit. This ptrtoint, add, inttoptr sequence should be
replaced with a getelementptr and a bitcast.
--
You are receiving this mail because:
You are the assignee for the bug.
--1372354013.D0e721.1660
Date: Thu, 27 Jun 2013 17:26:53 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 7
on bug 65873
from Tom Stellard
The SI backend needs to be fixed so it can handle zext i64 loads, but there is
also a bug in libclc. The vload implementation assumes pointer types are
32-bit:
define <2 x i32> @__clc_vload2_impl_i32__global(i32 %offset, i32 addrspace(1)*
nocapture %addr) nounwind readonly alwaysinline {
%1 = ptrtoint i32 addrspace(1)* %addr to i32
%2 = add i32 %1, %offset
%3 = inttoptr i32 %2 to <2 x i32> addrspace(1)*
%4 = load <2 x i32> addrspace(1)* %3, align 4, !tbaa !3
ret <2 x i32> %4
}
Pointers on SI are 64-bit. This ptrtoint, add, inttoptr sequence should be
replaced with a getelementptr and a bitcast.
You are receiving this mail because:
- You are the assignee for the bug.
--1372354013.D0e721.1660--
--===============1407990605==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1407990605==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Thu, 27 Jun 2013 18:18:59 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2136248098=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id D6636E5CB5
for ;
Thu, 27 Jun 2013 11:18:58 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============2136248098==
Content-Type: multipart/alternative; boundary="1372357138.Ab3eED7A0.16199"; charset="us-ascii"
--1372357138.Ab3eED7A0.16199
Date: Thu, 27 Jun 2013 18:18:58 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #8 from Aaron Watry ---
"Pointers on SI are 64-bit."
Talk about a "duh" moment. I'll see what I can do to fix and test the
vload/vstore implementation pointer generation since this is broken on SI,
maybe 64-bit PTX, and would also be broken on x86_64 (and others) if we ever
get around to supporting CPU targets in libclc.
--
You are receiving this mail because:
You are the assignee for the bug.
--1372357138.Ab3eED7A0.16199
Date: Thu, 27 Jun 2013 18:18:58 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 8
on bug 65873
from Aaron Watry
"Pointers on SI are 64-bit."
Talk about a "duh" moment. I'll see what I can do to fix and test the
vload/vstore implementation pointer generation since this is broken on SI,
maybe 64-bit PTX, and would also be broken on x86_64 (and others) if we ever
get around to supporting CPU targets in libclc.
You are receiving this mail because:
- You are the assignee for the bug.
--1372357138.Ab3eED7A0.16199--
--===============2136248098==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============2136248098==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Thu, 27 Jun 2013 20:54:13 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1786397229=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id A744BE5D12
for ;
Thu, 27 Jun 2013 13:54:13 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1786397229==
Content-Type: multipart/alternative; boundary="1372366453.DCEa1A1.31947"; charset="us-ascii"
--1372366453.DCEa1A1.31947
Date: Thu, 27 Jun 2013 20:54:13 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #9 from Tom Stellard ---
The piglit test should work with this patch:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130624/179364.html
But we should still try to fix the bug in libclc.
--
You are receiving this mail because:
You are the assignee for the bug.
--1372366453.DCEa1A1.31947
Date: Thu, 27 Jun 2013 20:54:13 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
You are receiving this mail because:
- You are the assignee for the bug.
--1372366453.DCEa1A1.31947--
--===============1786397229==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1786397229==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Thu, 27 Jun 2013 22:19:00 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1068096043=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 0098AE5C6C
for ;
Thu, 27 Jun 2013 15:18:59 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1068096043==
Content-Type: multipart/alternative; boundary="1372371540.C061A0.25414"; charset="us-ascii"
--1372371540.C061A0.25414
Date: Thu, 27 Jun 2013 22:19:00 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #10 from Aaron Watry ---
I've got a draft fix in my libclc repo on fdo.o. I've tested for regressions
on Cedar (successfully), and I will test on SI with your 64-bit load patch asap
(hopefully tonight, but we'll see).
--
You are receiving this mail because:
You are the assignee for the bug.
--1372371540.C061A0.25414
Date: Thu, 27 Jun 2013 22:19:00 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 10
on bug 65873
from Aaron Watry
I've got a draft fix in my libclc repo on fdo.o. I've tested for regressions
on Cedar (successfully), and I will test on SI with your 64-bit load patch asap
(hopefully tonight, but we'll see).
You are receiving this mail because:
- You are the assignee for the bug.
--1372371540.C061A0.25414--
--===============1068096043==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1068096043==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Fri, 28 Jun 2013 04:27:55 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0238269256=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 70D65E5CF8
for ;
Thu, 27 Jun 2013 21:27:55 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0238269256==
Content-Type: multipart/alternative; boundary="1372393675.8CD1fcC1.17178"; charset="us-ascii"
--1372393675.8CD1fcC1.17178
Date: Fri, 28 Jun 2013 04:27:55 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #11 from Tom Stellard ---
(In reply to comment #10)
> I've got a draft fix in my libclc repo on fdo.o. I've tested for
> regressions on Cedar (successfully), and I will test on SI with your 64-bit
> load patch asap (hopefully tonight, but we'll see).
I took a look at your libclc fix, and I realized that we can't use address
space qualifiers in common code, because addrspace(1) may not mean global
address space on all targets.
I think you might find that the optimizers are good enough to turn a .cl
implementation into optimal code, but if not we may be have to move the LLVM IR
implementations into target specific code.
--
You are receiving this mail because:
You are the assignee for the bug.
--1372393675.8CD1fcC1.17178
Date: Fri, 28 Jun 2013 04:27:55 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 11
on bug 65873
from Tom Stellard
(In reply to comment #10)
> I've got a draft fix in my libclc repo on fdo.o. I've tested for
> regressions on Cedar (successfully), and I will test on SI with your 64-bit
> load patch asap (hopefully tonight, but we'll see).
I took a look at your libclc fix, and I realized that we can't use address
space qualifiers in common code, because addrspace(1) may not mean global
address space on all targets.
I think you might find that the optimizers are good enough to turn a .cl
implementation into optimal code, but if not we may be have to move the LLVM IR
implementations into target specific code.
You are receiving this mail because:
- You are the assignee for the bug.
--1372393675.8CD1fcC1.17178--
--===============0238269256==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============0238269256==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Fri, 28 Jun 2013 14:45:38 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0814824202=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id C1390E6688
for ;
Fri, 28 Jun 2013 07:45:38 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0814824202==
Content-Type: multipart/alternative; boundary="1372430738.4c1331f0.1716"; charset="us-ascii"
--1372430738.4c1331f0.1716
Date: Fri, 28 Jun 2013 14:45:38 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #12 from Aaron Watry ---
No problem. I'll just revert the vload/vstore code to pure CLC implementations
and then override with assembly in the R600 back-end.
--
You are receiving this mail because:
You are the assignee for the bug.
--1372430738.4c1331f0.1716
Date: Fri, 28 Jun 2013 14:45:38 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 12
on bug 65873
from Aaron Watry
No problem. I'll just revert the vload/vstore code to pure CLC implementations
and then override with assembly in the R600 back-end.
You are receiving this mail because:
- You are the assignee for the bug.
--1372430738.4c1331f0.1716--
--===============0814824202==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============0814824202==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Mon, 15 Jul 2013 19:04:20 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1188029142=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id B5051E63FA
for ;
Mon, 15 Jul 2013 12:04:20 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1188029142==
Content-Type: multipart/alternative; boundary="1373915060.3A61E21.10138"; charset="us-ascii"
--1373915060.3A61E21.10138
Date: Mon, 15 Jul 2013 19:04:20 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #13 from Tom Stellard ---
(In reply to comment #9)
> The piglit test should work with this patch:
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130624/179364.
> html
>
> But we should still try to fix the bug in libclc.
I've just pushed this patch. What is the status of this bug with your
vstore/vload fixes?
--
You are receiving this mail because:
You are the assignee for the bug.
--1373915060.3A61E21.10138
Date: Mon, 15 Jul 2013 19:04:20 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
You are receiving this mail because:
- You are the assignee for the bug.
--1373915060.3A61E21.10138--
--===============1188029142==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============1188029142==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Mon, 15 Jul 2013 20:26:35 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0866105628=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id BDB3BE5DF1
for ;
Mon, 15 Jul 2013 13:26:35 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0866105628==
Content-Type: multipart/alternative; boundary="1373919995.13bFb3D00.23724"; charset="us-ascii"
--1373919995.13bFb3D00.23724
Date: Mon, 15 Jul 2013 20:26:35 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
--- Comment #14 from Aaron Watry ---
I still get errors with the v8i32/v16i32 loads, but those aren't currently
enabled in the R600 or SI back-ends as far as I know.
If I comment out the vload8 and vload16 tests everything runs correctly for me
on my 7850 with git master llvm/clang and my vload/vstore changes for libclc.
--
You are receiving this mail because:
You are the assignee for the bug.
--1373919995.13bFb3D00.23724
Date: Mon, 15 Jul 2013 20:26:35 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 14
on bug 65873
from Aaron Watry
I still get errors with the v8i32/v16i32 loads, but those aren't currently
enabled in the R600 or SI back-ends as far as I know.
If I comment out the vload8 and vload16 tests everything runs correctly for me
on my 7850 with git master llvm/clang and my vload/vstore changes for libclc.
You are receiving this mail because:
- You are the assignee for the bug.
--1373919995.13bFb3D00.23724--
--===============0866105628==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============0866105628==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 65873] R600/SI: Cannot select store with truncate to 32-bit
Date: Mon, 15 Jul 2013 23:43:56 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0039515849=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id D3BA5E5DCE
for ;
Mon, 15 Jul 2013 16:43:56 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0039515849==
Content-Type: multipart/alternative; boundary="1373931836.f77C3C5a0.16541"; charset="us-ascii"
--1373931836.f77C3C5a0.16541
Date: Mon, 15 Jul 2013 23:43:56 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=65873
Aaron Watry changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are the assignee for the bug.
--1373931836.f77C3C5a0.16541
Date: Mon, 15 Jul 2013 23:43:56 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Aaron Watry
changed
bug 65873
What |
Removed |
Added |
Status |
NEW
|
RESOLVED
|
Resolution |
---
|
FIXED
|
You are receiving this mail because:
- You are the assignee for the bug.
--1373931836.f77C3C5a0.16541--
--===============0039515849==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--===============0039515849==--