]> granicus.if.org Git - llvm/commit
[AMDGPU][MC] Added arg checks for vmcnt, expcnt, lgkmcnt helpers
authorDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>
Wed, 26 Apr 2017 17:55:50 +0000 (17:55 +0000)
committerDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>
Wed, 26 Apr 2017 17:55:50 +0000 (17:55 +0000)
commit559cd481444795822c9792dc98faf17d5a5e7068
treedaf805c4594b43190723d9c719f58eae6c835521
parent052412f4f5d512f4f7db833f6afbf83fe453c087
[AMDGPU][MC] Added arg checks for vmcnt, expcnt, lgkmcnt helpers

Summary of changes:
- corrected vmcnt, expcnt, lgkmcnt helpers to checks their argument for truncation;
- added saturated versions of these helpers.

See bug 32711 for details: https://bugs.llvm.org//show_bug.cgi?id=32711

Reviewers: artem.tamazov, vpykhtin

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301439 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
test/MC/AMDGPU/sopp-err.s
test/MC/AMDGPU/sopp.s