summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/IRBuilderTest.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-05-29 18:06:50 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-05-29 18:06:50 +0000
commit64c6ab445e9a59e7f97cf4cbf342db070979a6f5 (patch)
treed214288f1150b48c3d86918b082b3ea48df846f1 /llvm/unittests/IR/IRBuilderTest.cpp
parentceafc55e5a1a4796e48d0d09b589c0e77aa28944 (diff)
downloadbcm5719-llvm-64c6ab445e9a59e7f97cf4cbf342db070979a6f5.tar.gz
bcm5719-llvm-64c6ab445e9a59e7f97cf4cbf342db070979a6f5.zip
IRBuilder: Add overload for intrinsics without args
llvm-svn: 333443
Diffstat (limited to 'llvm/unittests/IR/IRBuilderTest.cpp')
-rw-r--r--llvm/unittests/IR/IRBuilderTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/IR/IRBuilderTest.cpp b/llvm/unittests/IR/IRBuilderTest.cpp
index 6a3d121552d..3e032751692 100644
--- a/llvm/unittests/IR/IRBuilderTest.cpp
+++ b/llvm/unittests/IR/IRBuilderTest.cpp
@@ -63,6 +63,10 @@ TEST_F(IRBuilderTest, Intrinsics) {
Call = Builder.CreateMaxNum(V, V);
II = cast<IntrinsicInst>(Call);
EXPECT_EQ(II->getIntrinsicID(), Intrinsic::maxnum);
+
+ Call = Builder.CreateIntrinsic(Intrinsic::readcyclecounter);
+ II = cast<IntrinsicInst>(Call);
+ EXPECT_EQ(II->getIntrinsicID(), Intrinsic::readcyclecounter);
}
TEST_F(IRBuilderTest, Lifetime) {
OpenPOWER on IntegriCloud