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

            Bug ID: 35812
           Summary: PowerPC: cmpxchg generates incorrect code for i16 and
                    i8
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: eric.schwe...@pgroup.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 19622
  --> https://bugs.llvm.org/attachment.cgi?id=19622&action=edit
reproducer for bad code gen

On PowerPC:

% clang -o a.out bug.bc
% ./a.out
FAILED: __atomic_compare_exchange_n() failed.
%


On x86:

% clang -o a.out bug.bc
warning: overriding the module target triple with x86_64-unknown-linux-gnu
      [-Woverride-module]
1 warning generated.
% ./a.out
PASSED
%

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to