[PATCH] D20994: AMDGPU: Fix i64 global cmpxchg

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 21:19:44 PDT 2016


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: kzhuravl, arsenm.

This was using extract_subreg sub0 to extract the low register
of the result instead of sub0_sub1, producing an invalid copy.
    
There doesn't seem to be a way to use the compound subreg indices
in tablegen since those are generated, so manually select it.


http://reviews.llvm.org/D20994

Files:
  lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  lib/Target/AMDGPU/AMDGPUSubtarget.h
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIInstructions.td
  test/CodeGen/AMDGPU/global_atomics.ll
  test/CodeGen/AMDGPU/global_atomics_i64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20994.59645.patch
Type: text/x-patch
Size: 14934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160604/7df66309/attachment.bin>


More information about the llvm-commits mailing list