Skip to content

Assertion `isRegLoc()' when using long in OpenCL kernels #179

Description

@nrother

Compiling the following OpenCL kernel code for a TTA target fails with an assertion:

__kernel void test(long a, __global int *b)
{
    long mul = (a * (long)10);
    int x_in = (int)(mul / (1 << 30));
    *b = x_in;
}
llvm-tce: /path/llvm14/include/llvm/CodeGen/CallingConvLower.h:150: llvm::Register llvm::CCValAssign::getLocReg() const: Assertion `isRegLoc()' failed.

This seems to be related to the usage of long.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions