[llvm-bugs] [Bug 30451] New: Atomicrmw min i16 produces wrong result on PowerPC

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 19 13:53:50 PDT 2016


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

            Bug ID: 30451
           Summary: Atomicrmw min i16 produces wrong result on PowerPC
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: v.churavy at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The code below returns -1 on x86_64 and 0 on PowerPC 


    define i16 @julia_hh_65132() #0 !dbg !5 {
    top:
      %0 = alloca i16, align 2
      %1 = bitcast i16* %0 to i8*
      call void @llvm.lifetime.start(i64 2, i8* %1)
      store i16 -1, i16* %0, align 2
      %2 = atomicrmw min i16* %0, i16 0 acq_rel
      %3 = load atomic i16, i16* %0 acquire, align 8
      call void @llvm.lifetime.end(i64 2, i8* %1)
      ret i16 %3
    }

-- 
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/20160919/c15c5fdf/attachment.html>


More information about the llvm-bugs mailing list