Skip to content

[opencl] Wrongfully assuming RHS is always unsigned #10374

@llvmbot

Description

@llvmbot
Bugzilla Link 10002
Resolution INVALID
Resolved on Apr 12, 2017 22:40
Version trunk
OS All
Attachments A simple test case which fails, A patch
Reporter LLVM Bugzilla Contributor
CC @AnastasiaStulova,@efriedma-quic,@tkremenek,@pjaaskel,@rjmccall,@tlattner

Extended Description

CGExprScalar.cpp: EmitShl(...) may produce an integer cast for a right hand side expression, assuming that it is unsigned. Please see the attached test case which produces a wrong IR and a patch to fix this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OpenCLbugzillaIssues migrated from bugzillainvalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions