From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104902] unpackHalf2x16 causes LLVM Error on GCN 1.2+ cards (and possibly others) Date: Thu, 01 Feb 2018 12:17:01 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0568202459==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id D5F2D6ED7C for ; Thu, 1 Feb 2018 12:17:01 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0568202459== Content-Type: multipart/alternative; boundary="15174874210.0fca0.27225" Content-Transfer-Encoding: 7bit --15174874210.0fca0.27225 Date: Thu, 1 Feb 2018 12:17:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D104902 Bug ID: 104902 Summary: unpackHalf2x16 causes LLVM Error on GCN 1.2+ cards (and possibly others) Product: Mesa Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: johnnyonflame@hotmail.com QA Contact: dri-devel@lists.freedesktop.org Included in this bug report is code to reproduce the crash without the actu= al application and the necessary data. https://gist.github.com/JohnnyonFlame/d5e0daf640b3ebd3c02f6e0327d53b55 Crash log: LLVM ERROR: Cannot select: 0x7f12680b09d8: f16 =3D bitcast 0x7f12680a83b8 0x7f12680a83b8: i32 =3D srl 0x7f12680a82e8, Constant:i32<16> 0x7f12680a82e8: i32 =3D bswap 0x7f12680b08a0 0x7f12680b08a0: i32 =3D and 0x7f12680b01b8, Constant:i32<65535> 0x7f12680b01b8: i32 =3D extract_vector_elt 0x7f12680b0150, Constant:i32<0> 0x7f12680b0150: v4i32 =3D bitcast 0x7f12680b00e8 0x7f12680b00e8: v4f32,ch =3D llvm.amdgcn.image.sample 0x7f1268033948, TargetConstant:i32<459>, 0x7f12680b0e50, 0x7f12680ab0e8, 0x7f12680ab220, Constant:i32<15>, Constant:i1<0>, Constant:i1<0>, Constant:i1<0>, Constant:i1<0>, Constant:i1<0> 0x7f12680affb0: i32 =3D TargetConstant<459> 0x7f12680b0e50: v2f32 =3D BUILD_VECTOR 0x7f12680a87c8, 0x7f12680aaee0 0x7f12680a87c8: f32 =3D INTERP_P2 0x7f12680a8898, 0x7f12680= ab288, Constant:i32<0>, Constant:i32<0>, 0x7f12680aae10:1 0x7f12680a8898: f32 =3D INTERP_P1 0x7f12680ab018, Constant:i32<0>, Constant:i32<0>, 0x7f12680aada8:1 0x7f12680ab288: f32 =3D bitcast 0x7f12680a8b08 0x7f12680aaa68: i32 =3D Constant<0> 0x7f12680aaa68: i32 =3D Constant<0> 0x7f12680aae10: ch,glue =3D SI_INIT_M0 0x7f12680a86f8, 0x7f1268033948 0x7f12680aaee0: f32 =3D fsub nsz ConstantFP:f32<1.000000e+0= 0>, 0x7f12680a8760 0x7f12680aae78: f32 =3D ConstantFP<1.000000e+00> 0x7f12680a8760: f32 =3D INTERP_P2 0x7f12680a8830, 0x7f12680ab288, Constant:i32<1>, Constant:i32<0>, 0x7f12680b0908:1 0x7f12680ab0e8: v8i32,ch =3D load 0x7f1268033948, 0x7f12680aafb0, undef:i64 0x7f12680aafb0: i64 =3D add 0x7f12680a8558, Constant:i64<51= 2> 0x7f12680a8558: i64,ch =3D CopyFromReg 0x7f1268033948, Register:i64 %3 0x7f12680aaf48: i64 =3D Constant<512> 0x7f12680ab080: i64 =3D undef 0x7f12680ab220: v4i32,ch =3D load 0x7f1268033948, 0x7f12680ab1b8, undef:i64 0x7f12680ab1b8: i64 =3D add 0x7f12680a8558, Constant:i64<56= 0> 0x7f12680a8558: i64,ch =3D CopyFromReg 0x7f1268033948, Register:i64 %3 0x7f12680ab150: i64 =3D Constant<560> 0x7f12680ab080: i64 =3D undef 0x7f12680b0018: i32 =3D Constant<15> 0x7f12680b0080: i1 =3D Constant<0> 0x7f12680b0080: i1 =3D Constant<0> 0x7f12680b0080: i1 =3D Constant<0> 0x7f12680b0080: i1 =3D Constant<0> 0x7f12680b0080: i1 =3D Constant<0> 0x7f12680aaa68: i32 =3D Constant<0> 0x7f12680aac08: i32 =3D Constant<65535> 0x7f12680a8350: i32 =3D Constant<16> --=20 You are receiving this mail because: You are the assignee for the bug.= --15174874210.0fca0.27225 Date: Thu, 1 Feb 2018 12:17:01 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 104902
Summary unpackHalf2x16 causes LLVM Error on GCN 1.2+ cards (and possi= bly others)
Product Mesa
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter johnnyonflame@hotmail.com
QA Contact dri-devel@lists.freedesktop.org

Included in this bug report is code to reproduce the crash wit=
hout the actual
application and the necessary data.

https://gist.github.com/JohnnyonFlame/d5e0daf640b3ebd3c02f6e0327d53=
b55

Crash log:
LLVM ERROR: Cannot select: 0x7f12680b09d8: f16 =3D bitcast 0x7f12680a83b8
  0x7f12680a83b8: i32 =3D srl 0x7f12680a82e8, Constant:i32<16>
    0x7f12680a82e8: i32 =3D bswap 0x7f12680b08a0
      0x7f12680b08a0: i32 =3D and 0x7f12680b01b8, Constant:i32<65535>
        0x7f12680b01b8: i32 =3D extract_vector_elt 0x7f12680b0150,
Constant:i32<0>
          0x7f12680b0150: v4i32 =3D bitcast 0x7f12680b00e8
            0x7f12680b00e8: v4f32,ch =3D
llvm.amdgcn.image.sample<LD16[TargetCustom7(addrspace=3D2)](dereferencea=
ble)>
0x7f1268033948, TargetConstant:i32<459>, 0x7f12680b0e50, 0x7f12680ab0=
e8,
0x7f12680ab220, Constant:i32<15>, Constant:i1<0>, Constant:i1&l=
t;0>,
Constant:i1<0>, Constant:i1<0>, Constant:i1<0>
              0x7f12680affb0: i32 =3D TargetConstant<459>
              0x7f12680b0e50: v2f32 =3D BUILD_VECTOR 0x7f12680a87c8,
0x7f12680aaee0
                0x7f12680a87c8: f32 =3D INTERP_P2 0x7f12680a8898, 0x7f12680=
ab288,
Constant:i32<0>, Constant:i32<0>, 0x7f12680aae10:1
                  0x7f12680a8898: f32 =3D INTERP_P1 0x7f12680ab018,
Constant:i32<0>, Constant:i32<0>, 0x7f12680aada8:1




                  0x7f12680ab288: f32 =3D bitcast 0x7f12680a8b08

                  0x7f12680aaa68: i32 =3D Constant<0>
                  0x7f12680aaa68: i32 =3D Constant<0>
                  0x7f12680aae10: ch,glue =3D SI_INIT_M0 0x7f12680a86f8,
0x7f1268033948

                0x7f12680aaee0: f32 =3D fsub nsz ConstantFP:f32<1.000000=
e+00>,
0x7f12680a8760
                  0x7f12680aae78: f32 =3D ConstantFP<1.000000e+00>
                  0x7f12680a8760: f32 =3D INTERP_P2 0x7f12680a8830,
0x7f12680ab288, Constant:i32<1>, Constant:i32<0>, 0x7f12680b090=
8:1





              0x7f12680ab0e8: v8i32,ch =3D
load<LD32[%30(addrspace=3D2)](dereferenceable)(invariant)> 0x7f126803=
3948,
0x7f12680aafb0, undef:i64
                0x7f12680aafb0: i64 =3D add 0x7f12680a8558, Constant:i64<=
;512>
                  0x7f12680a8558: i64,ch =3D CopyFromReg 0x7f1268033948,
Register:i64 %3

                  0x7f12680aaf48: i64 =3D Constant<512>
                0x7f12680ab080: i64 =3D undef
              0x7f12680ab220: v4i32,ch =3D
load<LD16[%33(addrspace=3D2)](dereferenceable)(invariant)> 0x7f126803=
3948,
0x7f12680ab1b8, undef:i64
                0x7f12680ab1b8: i64 =3D add 0x7f12680a8558, Constant:i64<=
;560>
                  0x7f12680a8558: i64,ch =3D CopyFromReg 0x7f1268033948,
Register:i64 %3

                  0x7f12680ab150: i64 =3D Constant<560>
                0x7f12680ab080: i64 =3D undef
              0x7f12680b0018: i32 =3D Constant<15>
              0x7f12680b0080: i1 =3D Constant<0>
              0x7f12680b0080: i1 =3D Constant<0>
              0x7f12680b0080: i1 =3D Constant<0>
              0x7f12680b0080: i1 =3D Constant<0>
              0x7f12680b0080: i1 =3D Constant<0>
          0x7f12680aaa68: i32 =3D Constant<0>
        0x7f12680aac08: i32 =3D Constant<65535>
    0x7f12680a8350: i32 =3D Constant<16>


You are receiving this mail because:
  • You are the assignee for the bug.
= --15174874210.0fca0.27225-- --===============0568202459== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0568202459==--