[llvm-dev] cmp instruction form

Dimitry Andric via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 10 04:23:59 PDT 2021


On 10 Aug 2021, at 13:16, zbh via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> I find the value 128 chaned to 129. So I want to know what's the purpose to changed the form?Can you give some example?

(icmp reference: <https://llvm.org/docs/LangRef.html#id303f>)

Before, it uses "icmp sle" which is "signed <=", so effectively "<= 128".

After, it uses "icmp ult" which is "unsigned <", so effectively "< 129".

These are equivalent.

-Dimitry



More information about the llvm-dev mailing list