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:
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>