[llvm-bugs] [Bug 31918] New: [AMDGPU] error in backend: Cannot select: t18: i32 = addrspacecast[2 -> 0] t24
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 9 06:56:08 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31918
Bug ID: 31918
Summary: [AMDGPU] error in backend: Cannot select: t18: i32 =
addrspacecast[2 -> 0] t24
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: AMDGPU
Assignee: unassignedbugs at nondot.org
Reporter: vedran at miletic.net
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
The following code:
#pragma OPENCL EXTENSION cl_khr_fp64 : disable
__kernel void compute_4(__global int *a,
__global float *b)
{
int i = 0;
float c[2] = {1, 2};
int j = a[i];
b[i] = c[j];
}
compiled using:
$ clang -Dcl_clang_storage_class_specifiers -isystem libclc/generic/include
-include clc/clc.h -target amdgcn-mesa-mesa3d -xcl asl.cl -cl-std=CL1.1 -o
asl.s
results in:
fatal error: error in backend: Cannot select: t18: i32 = addrspacecast[2 -> 0]
t24
t24: i64 = add t16, t35
t16: i64 = shl t29, Constant:i32<2>
t29: i64 = sign_extend t28
t28: i32,ch = load<LD4[%0(addrspace=1)](tbaa=<0x29090a8>)> t11, t33,
undef:i64
t33: i64 = bitcast t32
t32: v2i32,ch =
load<LD8[undef(addrspace=2)](nontemporal)(dereferenceable)(invariant)> t0, t2,
undef:i64
t2: i64,ch = CopyFromReg t0, Register:i64 %vreg1
t1: i64 = Register %vreg1
t4: i64 = undef
t4: i64 = undef
t27: i32 = Constant<2>
t35: i64 = PC_ADD_REL_OFFSET TargetGlobalAddress:i32<[2 x float]
addrspace(2)* @compute_4.c> + 4, TargetGlobalAddress:i32<[2 x float]
addrspace(2)* @compute_4.c> + 4
t34: i32 = TargetGlobalAddress<[2 x float] addrspace(2)* @compute_4.c> +
4
t34: i32 = TargetGlobalAddress<[2 x float] addrspace(2)* @compute_4.c> +
4
In function: compute_4
clang-5.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (https://github.com/llvm-mirror/clang.git
5808201fb358e2bf282226490e74eb74b867aee8)
(https://github.com/llvm-mirror/llvm.git
66a342c211a22d9214300986cc2c09957affcfab)
Target: amdgcn-mesa-mesa3d
Thread model: posix
InstalledDir: /usr/local/bin
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170209/91084c99/attachment.html>
More information about the llvm-bugs
mailing list