Skip to content

sext i16 to i32 being turned into movzwl #2511

@llvmbot

Description

@llvmbot
Bugzilla Link 2139
Resolution FIXED
Resolved on Mar 12, 2008 03:42
Version unspecified
OS Linux
Attachments testcase .ll
Reporter LLVM Bugzilla Contributor
CC @sunfishcode

Extended Description

$ llc testcase.bc
$ gcc -o testcase testcase.s
$ ./testcase
Aborted (core dumped)

Inspection of the .ll shows that it should not abort.
This seems to be because an sext is being emitted as a zext.
Reduced from a recent Ada testsuite failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions