diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/Transforms/LowerBitSets/function-ext.ll | |
parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) |
Diffstat (limited to 'test/Transforms/LowerBitSets/function-ext.ll')
-rw-r--r-- | test/Transforms/LowerBitSets/function-ext.ll | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/Transforms/LowerBitSets/function-ext.ll b/test/Transforms/LowerBitSets/function-ext.ll deleted file mode 100644 index 2a83bef2f0748..0000000000000 --- a/test/Transforms/LowerBitSets/function-ext.ll +++ /dev/null @@ -1,22 +0,0 @@ -; RUN: opt -S -lowerbitsets < %s | FileCheck %s - -; Tests that we correctly handle external references, including the case where -; all functions in a bitset are external references. - -target triple = "x86_64-unknown-linux-gnu" - -declare void @foo() - -; CHECK: @[[JT:.*]] = private constant [1 x <{ i8, i32, i8, i8, i8 }>] [<{ i8, i32, i8, i8, i8 }> <{ i8 -23, i32 trunc (i64 sub (i64 sub (i64 ptrtoint (void ()* @foo to i64), i64 ptrtoint ([1 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]] to i64)), i64 5) to i32), i8 -52, i8 -52, i8 -52 }>], section ".text" - -define i1 @bar(i8* %ptr) { - ; CHECK: icmp eq i64 {{.*}}, ptrtoint ([1 x <{ i8, i32, i8, i8, i8 }>]* @[[JT]] to i64) - %p = call i1 @llvm.bitset.test(i8* %ptr, metadata !"void") - ret i1 %p -} - -declare i1 @llvm.bitset.test(i8* %ptr, metadata %bitset) nounwind readnone - -!0 = !{!"void", void ()* @foo, i64 0} - -!llvm.bitsets = !{!0} |