summaryrefslogtreecommitdiff
path: root/test/Bindings
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-05 11:56:20 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-05 11:56:20 +0000
commitc8ac229cc8349685117f68bc6f1da04f98015cd6 (patch)
tree89e3dbfa18e4add8b2b663f5cfd220f337f3f358 /test/Bindings
parent150c95eab549e1d764eab7ed05b17fe09663fc6e (diff)
downloadllvm-c8ac229cc8349685117f68bc6f1da04f98015cd6.tar.gz
llvm-c8ac229cc8349685117f68bc6f1da04f98015cd6.tar.bz2
llvm-c8ac229cc8349685117f68bc6f1da04f98015cd6.tar.xz
[OCaml] (PR16318) Add missing argument to Llvm.const_intcast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bindings')
-rw-r--r--test/Bindings/Ocaml/vmcore.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Bindings/Ocaml/vmcore.ml b/test/Bindings/Ocaml/vmcore.ml
index 4233661e17..4c119c0f7c 100644
--- a/test/Bindings/Ocaml/vmcore.ml
+++ b/test/Bindings/Ocaml/vmcore.ml
@@ -286,6 +286,7 @@ let test_constants () =
* CHECK: const_ptrtoint{{.*}}ptrtoint
* CHECK: const_inttoptr{{.*}}inttoptr
* CHECK: const_bitcast{{.*}}bitcast
+ * CHECK: const_intcast{{.*}}zext
*)
let i128_type = integer_type context 128 in
ignore (define_global "const_trunc" (const_trunc (const_add foldbomb five)
@@ -305,6 +306,8 @@ let test_constants () =
ignore (define_global "const_inttoptr" (const_inttoptr (const_add foldbomb five)
void_ptr) m);
ignore (define_global "const_bitcast" (const_bitcast ffoldbomb i64_type) m);
+ ignore (define_global "const_intcast"
+ (const_intcast foldbomb i128_type ~is_signed:false) m);
group "misc constants";
(* CHECK: const_size_of{{.*}}getelementptr{{.*}}null