[PATCH] D19800: [PR27599] [SystemZ] [SelectionDAG] Fix extension of atomic cmpxchg result.
Marcin KoĆcielnicki via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 04:21:56 PDT 2016
koriakin created this revision.
koriakin added reviewers: uweigand, resistor.
koriakin added a subscriber: llvm-commits.
koriakin set the repository for this revision to rL LLVM.
Herald added a subscriber: dsanders.
Currently, SelectionDAG assumes 8/16-bit cmpxchg returns either a sign
extended result, or a zero extended result. SystemZ takes a third
option by returning junk in the high bits (rotated contents of the other
bytes in the memory word). In that case, don't use Assert*ext, and
zero-extend the result ourselves if a comparison is needed.
Repository:
rL LLVM
http://reviews.llvm.org/D19800
Files:
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/Target/Mips/MipsISelLowering.h
lib/Target/SystemZ/SystemZISelLowering.h
test/CodeGen/SystemZ/cmpxchg-05.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19800.55800.patch
Type: text/x-patch
Size: 4832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160502/bf225f2b/attachment.bin>
More information about the llvm-commits
mailing list