[llvm] r210482 - [OCaml] Add more Llvm_target tests
Peter Zotov
whitequark at whitequark.org
Mon Jun 9 11:28:48 PDT 2014
Author: whitequark
Date: Mon Jun 9 13:28:47 2014
New Revision: 210482
URL: http://llvm.org/viewvc/llvm-project?rev=210482&view=rev
Log:
[OCaml] Add more Llvm_target tests
Patch by Jacques-Pascal Deplaix
Modified:
llvm/trunk/test/Bindings/Ocaml/target.ml
Modified: llvm/trunk/test/Bindings/Ocaml/target.ml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bindings/Ocaml/target.ml?rev=210482&r1=210481&r2=210482&view=diff
==============================================================================
--- llvm/trunk/test/Bindings/Ocaml/target.ml (original)
+++ llvm/trunk/test/Bindings/Ocaml/target.ml Mon Jun 9 13:28:47 2014
@@ -46,7 +46,7 @@ let test_target_data () =
let layout = "e-p:32:32-f64:32:64-v64:32:64-v128:32:128-n32-S32" in
let dl = DL.of_string layout in
let sty = struct_type context [| i32_type; i64_type |] in
-
+
assert_equal (DL.as_string dl) layout;
assert_equal (DL.byte_order dl) Endian.Little;
assert_equal (DL.pointer_size dl) 4;
@@ -86,7 +86,8 @@ let test_target_machine () =
assert_equal (TM.triple machine) (Target.default_triple ());
assert_equal (TM.cpu machine) "";
assert_equal (TM.features machine) "";
- ignore (TM.data_layout machine)
+ ignore (TM.data_layout machine);
+ TM.set_verbose_asm true machine
(*===-- Code Emission -----------------------------------------------------===*)
More information about the llvm-commits
mailing list