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.

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