Fix incorrect "REQUIRE" (default_target->default_triple) introduced in 59f45a1cdb3
authorMehdi Amini <joker.eph@gmail.com>
Tue, 23 Jun 2020 17:30:25 +0000 (17:30 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 23 Jun 2020 18:22:39 +0000 (18:22 +0000)
Adding `default_target` fixed the build by excluding these tests... but
this excluded these tests from ever running!
The correct feature check is `default_triple`

llvm/test/Examples/Kaleidoscope/Chapter4.test
llvm/test/Examples/Kaleidoscope/Chapter5.test
llvm/test/Examples/Kaleidoscope/Chapter6.test
llvm/test/Examples/Kaleidoscope/Chapter7.test

index 7cc6521..cf8f743 100644 (file)
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch4 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Test basic definition, binding, and execution.
 def foo(x) x + 1;
index b226338..f950919 100644 (file)
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch5 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Test 'if' expression.
 def foo(x) if x < 10 then 0 else 1;
index 57d8eae..1126e0d 100644 (file)
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch6 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Test unary operator definition.
 def unary-(x) 0 - x;
index 75d20ae..4c77ebc 100644 (file)
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch7 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Sequence operator and iterative fibonacci function to test user defined vars.
 def binary : 1 (x y) y;