1 //===- llvm/unittest/IR/IntrinsicsTest.cpp - ------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "llvm/IR/IntrinsicInst.h"
10 #include "gtest/gtest.h"
16 static const char *const NameTable1
[] = {
24 TEST(IntrinNameLookup
, Basic
) {
25 int I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo");
27 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.f64");
29 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.b");
31 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.b.a");
33 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.c");
35 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.c.f64");