[llvm-bugs] [Bug 35812] New: PowerPC: cmpxchg generates incorrect code for i16 and i8
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 3 14:13:41 PST 2018
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: unassignedbugs at nondot.org
Reporter: eric.schweitz at pgroup.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180103/f38f0b32/attachment-0001.html>
More information about the llvm-bugs
mailing list