[PATCH] D101587: test case for BrainF

Jennifer Chukwu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 9 07:46:37 PDT 2021


jnyfah updated this revision to Diff 343912.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101587/new/

https://reviews.llvm.org/D101587

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


Index: mypatch.patch
===================================================================
--- mypatch.patch
+++ mypatch.patch
@@ -1,25 +0,0 @@
-diff --git a/llvm/docs/GettingStarted.rst b/llvm/docs/GettingStarted.rst
-index 838af6da9fa3..99c364c44918 100644
---- a/llvm/docs/GettingStarted.rst
-+++ b/llvm/docs/GettingStarted.rst
-@@ -173,7 +173,7 @@ uses the package and provides other details.
- Package                                                     Version      Notes
- =========================================================== ============ ==========================================
- `CMake <http://cmake.org/>`__                               >=3.13.4     Makefile/workspace generator
--`GCC <http://gcc.gnu.org/>`_                                >=5.1.0      C/C++ compiler\ :sup:`1`
-+`GCC <http://gcc.gnu.org/>`_                                >=7.4      C/C++ compiler\ :sup:`1`
- `python <http://www.python.org/>`_                          >=3.6        Automated test suite\ :sup:`2`
- `zlib <http://zlib.net>`_                                   >=1.2.3.4    Compression library\ :sup:`3`
- `GNU Make <http://savannah.gnu.org/projects/make>`_         3.79, 3.79.1 Makefile/build processor\ :sup:`4`
-@@ -233,9 +233,9 @@ LLVM is written using the subset of C++ documented in :doc:`coding
- standards<CodingStandards>`. To enforce this language version, we check the most
- popular host toolchains for specific minimum versions in our build systems:
- 
--* Clang 3.5
-+* Clang 6.0
- * Apple Clang 6.0
--* GCC 5.1
-+* GCC 7.4
- * Visual Studio 2017
- 
- Anything older than these toolchains *may* work, but will require forcing the
Index: llvm/test/Examples/BrainF/Inputs/HelloWorld.bf
===================================================================
--- llvm/test/Examples/BrainF/Inputs/HelloWorld.bf
+++ llvm/test/Examples/BrainF/Inputs/HelloWorld.bf
@@ -19,5 +19,4 @@
 ----- - .               (print 'l')
 ----- --- .             (print 'd')
 > + .                   (print '!')
-> .                     (print '\n')
-# CHECK: Hello World
\ No newline at end of file
+> .                     (print '\n')
\ 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,6 @@
-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 %p/Inputs/HelloWorld.bf
+; RUN: BrainF %s -o - | lli 2>&1 | FileCheck --check-prefix=EXEC %p/Inputs/HelloWorld.bf
 
 CHECK-LABEL:      define void @brainf() {
 CHECK-NEXT:      brainf:
@@ -8,7 +9,6 @@
 CHECK-NEXT:        %head = getelementptr i8, i8* %malloccall, i32 32768
 CHECK-NEXT:        %tape = load i8, i8* %head, align 1
 CHECK:             store i8 %tape2, i8* %head, align 1             
-CHECK:             [[tape2:%.*]] = add i8 [[tape]], 8
 CHECK:             br label %brainf3
 CHECK:           brainf1:                                          ; preds = %brainf55
 CHECK-NEXT:        tail call void @free(i8* %malloccall)
@@ -20,4 +20,6 @@
 CHECK-NEXT:        ret i32 0
 CHECK:       }
 
-EXEC: Hello World!
\ No newline at end of file
+EXEC: Hello World!
+
+]
\ No newline at end of file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101587.343912.patch
Type: text/x-patch
Size: 3371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210509/639acf04/attachment.bin>


More information about the llvm-commits mailing list