diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-05-30 13:14:50 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-05-30 13:14:50 -0700 |
commit | 381b0fb87f1fe806d678af8c48b67b4e0dc3a43b (patch) | |
tree | 3f6d52d5fafbf9a2c952b8e723f832644b1d99f0 /test | |
parent | f72e0b53e25548d6db9220a03a303e589c9773a4 (diff) |
PNaCl ABI checker: Disallow llvm.lifetime.start/end intrinsics
Run StripDeadPrototypes as a final pass to ensure that the prototypes
for lifetime.start/end are removed.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3443
TEST=PNaCl toolchain trybots
Review URL: https://codereview.chromium.org/16063005
Diffstat (limited to 'test')
-rw-r--r-- | test/NaCl/PNaClABI/intrinsics.ll | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/NaCl/PNaClABI/intrinsics.ll b/test/NaCl/PNaClABI/intrinsics.ll index d54a9fe863..e5fe6116ed 100644 --- a/test/NaCl/PNaClABI/intrinsics.ll +++ b/test/NaCl/PNaClABI/intrinsics.ll @@ -21,13 +21,6 @@ declare i8* @llvm.returnaddress(i32 %level) ; =================================== ; Always allowed intrinsics. -; CHECK-NOT: Function llvm.lifetime.start is a disallowed LLVM intrinsic -; DBG-NOT: Function llvm.lifetime.start is a disallowed LLVM intrinsic -; DEV-NOT: Function llvm.lifetime.start is a disallowed LLVM intrinsic -declare void @llvm.lifetime.start(i64, i8* nocapture) - -; CHECK-NOT: Function llvm.lifetime.start is a disallowed LLVM intrinsic -declare void @llvm.lifetime.end(i64, i8* nocapture) ; CHECK-NOT: Function llvm.memcpy.p0i8.p0i8.i32 is a disallowed LLVM intrinsic declare void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, @@ -75,3 +68,9 @@ declare i1 @llvm.bswap.1(i1) ; CHECK: Function llvm.bswap.8 is a disallowed LLVM intrinsic declare i8 @llvm.bswap.8(i8) + +; CHECK: Function llvm.lifetime.start is a disallowed LLVM intrinsic +declare void @llvm.lifetime.start(i64, i8* nocapture) + +; CHECK: Function llvm.lifetime.end is a disallowed LLVM intrinsic +declare void @llvm.lifetime.end(i64, i8* nocapture) |