diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-23 05:31:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-23 05:31:10 +0000 |
commit | 46dc32f9ecb22fd580aa6d8a23415394ce222982 (patch) | |
tree | 33d4ec06430a66dcff5a64d452d53a68cf2ff20e /test/Verifier | |
parent | 58742de2b05844dd010dd8e890819d2983b58e46 (diff) | |
download | external_llvm-46dc32f9ecb22fd580aa6d8a23415394ce222982.zip external_llvm-46dc32f9ecb22fd580aa6d8a23415394ce222982.tar.gz external_llvm-46dc32f9ecb22fd580aa6d8a23415394ce222982.tar.bz2 |
Verify that the alignment argument to llvm.memcpy is a constant
integer, PR2318.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r-- | test/Verifier/2008-08-22-MemCpyAlignment.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Verifier/2008-08-22-MemCpyAlignment.ll b/test/Verifier/2008-08-22-MemCpyAlignment.ll new file mode 100644 index 0000000..6bad2d1 --- /dev/null +++ b/test/Verifier/2008-08-22-MemCpyAlignment.ll @@ -0,0 +1,11 @@ +; RUN: not llvm-as -f %s -o /dev/null |& grep {alignment argument of memory intrinsics must be a constant int} +; PR2318 + +define void @x(i8* %a, i8* %src, i64 %len, i32 %align) nounwind { +entry: + tail call void @llvm.memcpy.i64( i8* %a, i8* %src, i64 %len, i32 %align) nounwind + ret void +} + +declare void @llvm.memcpy.i64( i8* %a, i8* %src, i64 %len, i32) + |