summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
diff options
context:
space:
mode:
authorMarcin Koscielnicki <koriakin@0x04.net>2016-07-10 14:41:22 +0000
committerMarcin Koscielnicki <koriakin@0x04.net>2016-07-10 14:41:22 +0000
commitcf7cc724a728e73e1b2c3258b0adb08326c802c1 (patch)
tree78bafc61d804bc8e576ec0843b86d5d789fb81c9 /llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
parent303326541bab361acc5c1324b0a743a16aa3bae2 (diff)
downloadbcm5719-llvm-cf7cc724a728e73e1b2c3258b0adb08326c802c1.tar.gz
bcm5719-llvm-cf7cc724a728e73e1b2c3258b0adb08326c802c1.zip
[SystemZ] Utilize Test Data Class instructions.
This adds a new SystemZ-specific intrinsic, llvm.s390.tdc.f(32|64|128), which maps straight to the test data class instructions. A new IR pass is added to recognize instructions that can be converted to TDC and perform the necessary replacements. Differential Revision: http://reviews.llvm.org/D21949 llvm-svn: 275016
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
index 2259840d2d1..5e1552f586f 100644
--- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -1444,6 +1444,11 @@ static bool isIntrinsicWithCC(SDValue Op, unsigned &Opcode, unsigned &CCValid) {
CCValid = SystemZ::CCMASK_VCMP;
return true;
+ case Intrinsic::s390_tdc:
+ Opcode = SystemZISD::TDC;
+ CCValid = SystemZ::CCMASK_TDC;
+ return true;
+
default:
return false;
}
OpenPOWER on IntegriCloud