[RISCV] atomic_store_nn have a different layout to regular store
authorRoger Ferrer Ibanez <rofirrim@gmail.com>
Mon, 27 Aug 2018 07:08:18 +0000 (07:08 +0000)
committerRoger Ferrer Ibanez <rofirrim@gmail.com>
Mon, 27 Aug 2018 07:08:18 +0000 (07:08 +0000)
commitfe282170487a7f021aca0af774091fcdf9a9c41b
tree2accb9b429d051141db3f42cd1404130f488bb5f
parentbe4a54940e01358103887c1a1271d9797e279af8
[RISCV] atomic_store_nn have a different layout to regular store

We cannot directy reuse the patterns of StPat because for some reason the store
DAG node and the atomic_store_nn DAG nodes put the ptr and the value in
different positions. Currently we attempt to store the address to an address
formed by the value.

Differential Revision: https://reviews.llvm.org/D51217

llvm-svn: 340722
llvm/lib/Target/RISCV/RISCVInstrInfoA.td
llvm/test/CodeGen/RISCV/atomic-load-store.ll