Issue 137764
Summary 32-bit registers store variables of unsigned char type without zero extension
Labels new issue
Assignees
Reporter zhaojiangkun-1
    I found that the 32-bit register stores unsigned char type variables without zero extension in x86.
However, in arm and gcc x86, there are zero extension instructions.
In gcc x86, `movzx edi and dil `are used.
In ARM, `and x8, x0, #0xff` are used to implement this function.

Why does x86 not have zero extension instructions? Is this a bug?
https://godbolt.org/z/4PWhnz7a5
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to