https://bugs.llvm.org/show_bug.cgi?id=30451

Nemanja Ivanovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|REOPENED                    |RESOLVED

--- Comment #11 from Nemanja Ivanovic <[email protected]> ---
This isn't the same problem (or really a compiler problem at all). The call to
julia_f_369 is with the value 65535 (i.e. (i16)-1) which is certainly larger
than zero. So the program behaves correctly - exactly as specified in the IR.

You need to specify the extension type for the parameter to the function.
Namely:
define i16 @julia_f_369(i16 %0)

really needs to be:
define i16 @julia_f_369(i16 signext %0)

Otherwise it is "anyext" which defaults to the cheapest one - on PPC, it is
zext.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to