[llvm-dev] Code which should exit 1 is exiting 0

via llvm-dev llvm-dev at lists.llvm.org
Wed May 4 17:32:32 PDT 2016


> On May 4, 2016, at 5:25 PM, Carlos Liam via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> I have IR at https://ghostbin.com/paste/daxv5 <https://ghostbin.com/paste/daxv5> which is meant to exit 1, but it is always exiting 0.
> 
> I'm using it as a template for checking if two functions @test1 and @test2 are equivalent by checking against the exhaustive possible i16 values. For this particular example it should be enough to know that for certain i16, @test1 and @test2 are *not* equal. When an inequality is found, the program should exit 1. However, it seems like it's always exiting 0. Is there something I'm doing wrong?
> 
>  - CL

How are you compiling it? For which target?

—escha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160504/fcadc2ed/attachment.html>


More information about the llvm-dev mailing list