summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARC
diff options
context:
space:
mode:
authorTatyana Krasnukha <tatyana@synopsys.com>2018-01-17 17:58:28 +0000
committerTatyana Krasnukha <tatyana@synopsys.com>2018-01-17 17:58:28 +0000
commit8979eea04edc45c314eca60946f3dc82f8a70474 (patch)
treeaaee429f7413a9aa4debaec687ab52111cd357ea /llvm/lib/Target/ARC
parent996a8c1a660fd6d36ad3334f1aaf3ccfcb7e546b (diff)
downloadbcm5719-llvm-8979eea04edc45c314eca60946f3dc82f8a70474.tar.gz
bcm5719-llvm-8979eea04edc45c314eca60946f3dc82f8a70474.zip
[ARC] Add missing condition codes.
Summary: Added VS and VC, required for disassembling. Reviewers: petecoup Reviewed By: petecoup Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D42172 llvm-svn: 322718
Diffstat (limited to 'llvm/lib/Target/ARC')
-rw-r--r--llvm/lib/Target/ARC/ARCInstrInfo.cpp4
-rw-r--r--llvm/lib/Target/ARC/InstPrinter/ARCInstPrinter.cpp4
-rw-r--r--llvm/lib/Target/ARC/MCTargetDesc/ARCInfo.h2
3 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARC/ARCInstrInfo.cpp b/llvm/lib/Target/ARC/ARCInstrInfo.cpp
index a299e32c03a..4a95fced446 100644
--- a/llvm/lib/Target/ARC/ARCInstrInfo.cpp
+++ b/llvm/lib/Target/ARC/ARCInstrInfo.cpp
@@ -103,6 +103,10 @@ static ARCCC::CondCode GetOppositeBranchCondition(ARCCC::CondCode CC) {
return ARCCC::LE;
case ARCCC::GE:
return ARCCC::LT;
+ case ARCCC::VS:
+ return ARCCC::VC;
+ case ARCCC::VC:
+ return ARCCC::VS;
case ARCCC::LT:
return ARCCC::GE;
case ARCCC::LE:
diff --git a/llvm/lib/Target/ARC/InstPrinter/ARCInstPrinter.cpp b/llvm/lib/Target/ARC/InstPrinter/ARCInstPrinter.cpp
index 4760ac4456d..48431677bb7 100644
--- a/llvm/lib/Target/ARC/InstPrinter/ARCInstPrinter.cpp
+++ b/llvm/lib/Target/ARC/InstPrinter/ARCInstPrinter.cpp
@@ -66,6 +66,10 @@ static const char *ARCCondCodeToString(ARCCC::CondCode CC) {
return "gt";
case ARCCC::GE:
return "ge";
+ case ARCCC::VS:
+ return "vs";
+ case ARCCC::VC:
+ return "vc";
case ARCCC::LT:
return "lt";
case ARCCC::LE:
diff --git a/llvm/lib/Target/ARC/MCTargetDesc/ARCInfo.h b/llvm/lib/Target/ARC/MCTargetDesc/ARCInfo.h
index b9ed9988570..401b4c5e661 100644
--- a/llvm/lib/Target/ARC/MCTargetDesc/ARCInfo.h
+++ b/llvm/lib/Target/ARC/MCTargetDesc/ARCInfo.h
@@ -30,6 +30,8 @@ enum CondCode {
N = 0x4,
LO = 0x5,
HS = 0x6,
+ VS = 0x7,
+ VC = 0x8,
GT = 0x9,
GE = 0xa,
LT = 0xb,
OpenPOWER on IntegriCloud