[llvm-dev] cmp instruction form (original) (raw)
Dimitry Andric via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 10 04:23:59 PDT 2021
- Previous message: [llvm-dev] cmp instruction form
- Next message: [llvm-dev] cmp instruction form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [llvm-dev] cmp instruction form
- Next message: [llvm-dev] cmp instruction form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]