[llvm-bugs] [Bug 48388] New: [PPC] Presence of pointer comparison leads to miss-compilation.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 4 07:35:44 PST 2020


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

            Bug ID: 48388
           Summary: [PPC] Presence of pointer comparison leads to
                    miss-compilation.
           Product: libraries
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: v.churavy at gmail.com
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

Created attachment 24235
  --> https://bugs.llvm.org/attachment.cgi?id=24235&action=edit
division with upwards rounding

On x86_64:
```
lli div.ll
echo $?
251 # two's complement for -5
```

On PPC64LE
```
lli div.ll
echo $?
252 # two's complement for -4
```

The code implements signed integer division with upwards rounding, downstream's
bug is https://github.com/JuliaLang/julia/issues/38641#issuecomment-738826299

This particular instance seems to happen due to the pointer comparison. This
was tested against LLVM 11.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201204/98143eea/attachment.html>


More information about the llvm-bugs mailing list