[LLVMdev] is it valid to compare between i1 value?
sanjoy at playingwithpointers.com
Sun Mar 1 23:31:01 PST 2015
On Sun, Mar 1, 2015 at 11:21 PM, Ruiling Song <ruiling.song83 at gmail.com> wrote:
> Hi guys,
> we are doing some testing against LLVM 3.6 and find below IR generated.
> %Pivot = icmp slt i1 %trunc49, false
> I am just curious about is this a valid LLVM IR?
> If valid, is true (1) less than false (0)?
Yes, "i1 1" is signed-less-than "i1 0".
More information about the llvm-dev