AMDGPU: Fix off by one error in register parsing
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Nov 2015 22:50:27 +0000 (22:50 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Nov 2015 22:50:27 +0000 (22:50 +0000)
commite2849a9de0a142696a14cbcef984c2953fb2cb79
tree9cca60b207a22c8dffcf729634017a7eef64de0f
parent5c3718f5014621c3a32c3793d07620ca8399898c
AMDGPU: Fix off by one error in register parsing

If trying to use one past the end, this would assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252008 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
test/MC/AMDGPU/out-of-range-registers.s [new file with mode: 0644]