https://bugs.llvm.org/show_bug.cgi?id=41449
Bug ID: 41449
Summary: LLVM Error: Cannot select: 0x48b91b8: i1 = add
0x48b9080, Constant:i1<-1>
Product: clang
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
When I using hipcc to link some ported function from cuda. The linker shows the
error info:
LLVM ERROR: Cannot select: 0x48b91b8: i1 = add 0x48b9080, Constant:i1<-1>
0x48b9080: i1,ch = CopyFromReg 0x4258fe8, Register:i1 %29
0x48bb1d8: i1 = Register %29
0x4706c38: i1 = Constant<-1>
In function:
_Z23hip_kernel_diff2_coarseILb0ELb0ELi512ELi1ELi2EEvPfS0_S0_S0_S0_S0_18AccProjectorKernelS0_S0_ii
Generating AMD GCN kernel failed in llc for target: gfx906
clang-7: error: linker command failed with exit code 1 (use -v to see
invocation)
I also try to change the AMDGPU_TARGET by export HCC_AMDGPU_TARGET=gfx900 also
doesn't work.
I almost check the code of the function hip_kernel_diff2_coarse line by line.
And find if I comment one statement like this the error will disappear, but it
is important in the code.
imag = c * s_imag[i + init_pixel % block_sz] + s * s_real[i + init_pixel %
block_sz] ;
How can I keep this sentence to solve this problem?
Thanks!
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs