From c5f0da9f2a5ffb5d9e8803839655f2f3d6972d83 Mon Sep 17 00:00:00 2001 From: Karl Schimpf Date: Wed, 3 Jul 2013 09:56:04 -0700 Subject: Cleanup output of pnacl-bcanalyzer. (1) Fix spacing in header of record histogram so that columns line up. (2) Only print 8 operands per line in the dump. Keeps lines from getting too long. BUG=None R=jvoung@chromium.org, mseaborn@chromium.org Review URL: https://codereview.chromium.org/18147006 --- test/NaCl/Bitcode/bcanalyzer-width.ll | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/NaCl/Bitcode/bcanalyzer-width.ll (limited to 'test/NaCl/Bitcode') diff --git a/test/NaCl/Bitcode/bcanalyzer-width.ll b/test/NaCl/Bitcode/bcanalyzer-width.ll new file mode 100644 index 0000000000..57899120ef --- /dev/null +++ b/test/NaCl/Bitcode/bcanalyzer-width.ll @@ -0,0 +1,21 @@ +; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump \ +; RUN: | FileCheck %s -check-prefix=BC +; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump -operands-per-line=2 \ +; RUN: | FileCheck %s -check-prefix=BC2 +; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump -operands-per-line=8 \ +; RUN: | FileCheck %s -check-prefix=BC8 + +; Test that the command-line option -operands-per-line works as expected. + +@bytes = internal global [10 x i8] c"abcdefghij" + +; BC: + +; BC2: + +; BC8: -- cgit v1.2.3-70-g09d2