[PATCH] D101690: changes

Jennifer Chukwu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 1 05:38:24 PDT 2021


jnyfah created this revision.
jnyfah requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101690

Files:
  llvm/test/BrainF/HelloWorld.II
  llvm/test/BrainF/Inputs/HelloWorld.bf
  llvm/test/Examples/BrainF/BrainF.ll
  llvm/test/Examples/BrainF/Inputs/HelloWorld.bf
  mypatch.patch


Index: llvm/test/BrainF/Inputs/HelloWorld.bf
===================================================================
--- /dev/null
+++ llvm/test/BrainF/Inputs/HelloWorld.bf
@@ -1,23 +0,0 @@
-; RUN: BrainF %s -o - | lli 2>&1 | FileCheck %s
-+++++ +++++             (initialize counter (cell #0) to 10)
-[                       (use loop to set the next four cells to 70/100/30/10)
-    > +++++ ++          (add  7 to cell #1)
-    > +++++ +++++       (add 10 to cell #2 )
-    > +++               (add  3 to cell #3)
-    > +                 (add  1 to cell #4)
-    <<<< -              (decrement counter (cell #0))
-]                   
-> ++ .                  (print 'H')
-> + .                   (print 'e')
-+++++ ++ .              (print 'l')
-.                       (print 'l')
-+++ .                   (print 'o')
-> ++ .                  (print ' ')
-<< +++++ +++++ +++++ .  (print 'W')
-> .                     (print 'o')
-+++ .                   (print 'r')
------ - .               (print 'l')
------ --- .             (print 'd')
-> + .                   (print '!')
-> .                     (print '\n')
-# CHECK: Hello World
\ No newline at end of file
Index: llvm/test/Examples/BrainF/BrainF.ll
===================================================================
--- llvm/test/Examples/BrainF/BrainF.ll
+++ llvm/test/Examples/BrainF/BrainF.ll
@@ -1,5 +1,5 @@
-; RUN: BrainF %s -o - | llvm-dis | FileCheck --check-prefix=CHECK %s
-; RUN: BrainF %s -o - | lli 2>&1 | FileCheck --check-prefix=EXEC %s
+RUN: BrainF %s -o - | llvm-dis | FileCheck --check-prefix=CHECK %s
+RUN: BrainF %s -o - | lli 2>&1 | FileCheck --check-prefix=EXEC %s
 
 CHECK-LABEL:      define void @brainf() {
 CHECK-NEXT:      brainf:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101690.342140.patch
Type: text/x-patch
Size: 1718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210501/b8095b44/attachment.bin>


More information about the llvm-commits mailing list