For atomic value operand which less than 4 bytes need to be masked.
And the related operation to calculate the newvalue can be done in 32 bit gprc.
So just use gprc for mask and value calculation.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D56077
[PowerPC] Fix assert from machine verify pass that atomic pseudo expanding causes mismatched register class ClosedPublic Authored by • wuzish on Dec 25 2018, 6:29 PM.
Details Summary For atomic value operand which less than 4 bytes need to be masked.
Diff Detail Event TimelineHerald added subscribers: llvm-commits, jfb, kbarton, hiraditya. · View Herald TranscriptDec 25 2018, 6:29 PM This revision is now accepted and ready to land.Dec 27 2018, 9:07 AM Closed by commit rL350113: [PowerPC] Fix assert from machine verify pass that atomic pseudo expanding… (authored by • wuzish). · Explain WhyDec 27 2018, 6:16 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 179595 llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/PR35812-neg-cmpxchg.ll
llvm/test/CodeGen/PowerPC/atomic-2.ll
llvm/test/CodeGen/PowerPC/atomic-minmax.ll
llvm/test/CodeGen/PowerPC/atomics.ll
|
This comment is wrapped oddly (you can go out to 80 characters), please rewrap. Also, it should end with a period.