OSDN Git Service

[AMDGPU][llvm-mc] Support for 32-bit inline literals
authorTom Stellard <thomas.stellard@amd.com>
Mon, 22 Feb 2016 19:17:56 +0000 (19:17 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 22 Feb 2016 19:17:56 +0000 (19:17 +0000)
commit1d532279306e70eff801e66df4ad53611fc04fe8
tree8acb2d6b96cb89b63eda02f44f5cae1d38e4f7e6
parent52b2fdbe17f2dd4754412e0eb94293be933dfe41
[AMDGPU][llvm-mc] Support for 32-bit inline literals

Patch by: Artem Tamazov

Summary:
Note: Support for 64-bit inline literals TBD
Added: Support of abs/neg modifiers for literals (incomplete; parsing TBD).
Added: Some TODO comments.
Reworked/clarity: rename isInlineImm() to isInlinableImm()
Reworked/robustness: disallow BitsToFloat() with undefined value in isInlinableImm()
Reworked/reuse: isSSrc32/64(), isVSrc32/64()
Tests added.

Reviewers: tstellarAMD, arsenm

Subscribers: vpykhtin, nhaustov, SamWot, arsenm

Projects: #llvm-amdgpu-spb

Differential Revision: http://reviews.llvm.org/D17204

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261559 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
lib/Target/AMDGPU/SIInstrInfo.td
test/MC/AMDGPU/vop3-errs.s
test/MC/AMDGPU/vop3.s