1 //===- llvm/unittest/IR/IntrinsicsTest.cpp - ------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/IR/IntrinsicInst.h"
11 #include "gtest/gtest.h"
17 static const char *const NameTable1
[] = {
25 TEST(IntrinNameLookup
, Basic
) {
26 int I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo");
28 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.f64");
30 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.b");
32 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.b.a");
34 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.c");
36 I
= Intrinsic::lookupLLVMIntrinsicByName(NameTable1
, "llvm.foo.c.f64");