Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: test/NaCl/Bitcode/bcanalyzer-width.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/NaCl/Bitcode/alloca-operand.ll ('k') | test/NaCl/Bitcode/bccompress.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/Bitcode/bcanalyzer-width.ll
diff --git a/test/NaCl/Bitcode/bcanalyzer-width.ll b/test/NaCl/Bitcode/bcanalyzer-width.ll
new file mode 100644
index 0000000000000000000000000000000000000000..e9c7c289cc193aa8527a79ab4f9b0db1bf6e087e
--- /dev/null
+++ b/test/NaCl/Bitcode/bcanalyzer-width.ll
@@ -0,0 +1,23 @@
+; RUN: llvm-as < %s | pnacl-freeze | pnacl-bcanalyzer -dump-records \
+; RUN: | FileCheck %s -check-prefix=BC
+; RUN: llvm-as < %s | pnacl-freeze \
+; RUN: | pnacl-bcanalyzer -dump-records -operands-per-line=2 \
+; RUN: | FileCheck %s -check-prefix=BC2
+; RUN: llvm-as < %s | pnacl-freeze \
+; RUN: | pnacl-bcanalyzer -dump-records -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: <DATA op0=97 op1=98 op2=99 op3=100 op4=101 op5=102 op6=103 op7=104 op8=105 op9=106/>
+
+; BC2: <DATA op0=97 op1=98
+; BC2: op2=99 op3=100
+; BC2: op4=101 op5=102
+; BC2: op6=103 op7=104
+; BC2: op8=105 op9=106/>
+
+; BC8: <DATA op0=97 op1=98 op2=99 op3=100 op4=101 op5=102 op6=103 op7=104
+; BC8: op8=105 op9=106/>
« no previous file with comments | « test/NaCl/Bitcode/alloca-operand.ll ('k') | test/NaCl/Bitcode/bccompress.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698