| //===- llvm/unittest/IR/IntrinsicsTest.cpp - ------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| #include "llvm/IR/IntrinsicInst.h" |
| static const char *const NameTable1[] = { |
| TEST(IntrinNameLookup, Basic) { |
| int I = Intrinsic::lookupLLVMIntrinsicByName(NameTable1, "llvm.foo"); |
| I = Intrinsic::lookupLLVMIntrinsicByName(NameTable1, "llvm.foo.f64"); |
| I = Intrinsic::lookupLLVMIntrinsicByName(NameTable1, "llvm.foo.b"); |
| I = Intrinsic::lookupLLVMIntrinsicByName(NameTable1, "llvm.foo.b.a"); |
| I = Intrinsic::lookupLLVMIntrinsicByName(NameTable1, "llvm.foo.c"); |
| I = Intrinsic::lookupLLVMIntrinsicByName(NameTable1, "llvm.foo.c.f64"); |