OSDN Git Service

AMDGPU: Fix emitting encoded calls
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 2 Aug 2017 01:42:04 +0000 (01:42 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 2 Aug 2017 01:42:04 +0000 (01:42 +0000)
commit5474c6d8df7890e3733a3bf15706cf3e208c9ec9
tree7b1588d9cc5bd24bd58f5d098f46c51654c96149
parent23e59ddf6d1bb9f28f69c2a64d97da041af1899c
AMDGPU: Fix emitting encoded calls

This was failing on out of bounds access to the extra operands
on the s_swappc_b64 beyond those in the instruction definition.

This was working, but somehow regressed within the past few weeks,
although I don't see any obvious commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309782 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp
test/CodeGen/AMDGPU/call-encoding.ll [new file with mode: 0644]