[llvm-bugs] [Bug 41449] New: LLVM Error: Cannot select: 0x48b91b8: i1 = add 0x48b9080, Constant:i1<-1>

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 10 06:03:55 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: wangzihao at ict.ac.cn
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190410/3bca85ca/attachment.html>


More information about the llvm-bugs mailing list