summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/MCTargetDesc
diff options
context:
space:
mode:
authorDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>2019-06-03 13:51:24 +0000
committerDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>2019-06-03 13:51:24 +0000
commit9111f35f0233af8fb91467cf65100b7cda50f892 (patch)
treeb6f3338fb05786baec6dbfd70b53361bbd613fa1 /llvm/lib/Target/AMDGPU/MCTargetDesc
parent082d99f58cbea021727a69cb7d7c28ec92331957 (diff)
downloadbcm5719-llvm-9111f35f0233af8fb91467cf65100b7cda50f892.tar.gz
bcm5719-llvm-9111f35f0233af8fb91467cf65100b7cda50f892.zip
[AMDGPU][MC] Added support of SCC, VCCZ and EXECZ operands
See bug 39292: https://bugs.llvm.org/show_bug.cgi?id=39292 Reviewers: rampitec, arsenm Differential Revision: https://reviews.llvm.org/D62660 llvm-svn: 362400
Diffstat (limited to 'llvm/lib/Target/AMDGPU/MCTargetDesc')
-rw-r--r--llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
index f67904ad19d..0e2706349b1 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
@@ -281,8 +281,14 @@ void AMDGPUInstPrinter::printRegOperand(unsigned RegNo, raw_ostream &O,
case AMDGPU::VCC:
O << "vcc";
return;
- case AMDGPU::SCC:
- O << "scc";
+ case AMDGPU::SRC_VCCZ:
+ O << "src_vccz";
+ return;
+ case AMDGPU::SRC_EXECZ:
+ O << "src_execz";
+ return;
+ case AMDGPU::SRC_SCC:
+ O << "src_scc";
return;
case AMDGPU::EXEC:
O << "exec";
@@ -358,6 +364,8 @@ void AMDGPUInstPrinter::printRegOperand(unsigned RegNo, raw_ostream &O,
case AMDGPU::SCRATCH_WAVE_OFFSET_REG:
case AMDGPU::PRIVATE_RSRC_REG:
llvm_unreachable("pseudo-register should not ever be emitted");
+ case AMDGPU::SCC:
+ llvm_unreachable("pseudo scc should not ever be emitted");
default:
break;
}
OpenPOWER on IntegriCloud