Skip to content

PowerPC: cmpxchg generates incorrect code for i16 and i8 #35160

@llvmbot

Description

@llvmbot
Bugzilla Link 35812
Resolution FIXED
Resolved on Jan 24, 2018 07:33
Version trunk
OS Linux
Blocks #35152
Attachments reproducer for bad code gen
Reporter LLVM Bugzilla Contributor
CC @zmodem,@hfinkel,@nemanjai
Fixed by commit(s) https://reviews.llvm.org/rL322372

Extended Description

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
%

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions