[llvm] r265350 - test: Always treat .mir files as tests even outside of CodeGen/MIR

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 4 14:23:44 PDT 2016


Author: matze
Date: Mon Apr  4 16:23:44 2016
New Revision: 265350

URL: http://llvm.org/viewvc/llvm-project?rev=265350&view=rev
Log:
test: Always treat .mir files as tests even outside of CodeGen/MIR

We missed a handful of .mir tests that existed outside the
test/CodeGen/MIR directory.

Also fix the three powerpc .mir tests that nobody noticed were broken.

Removed:
    llvm/trunk/test/CodeGen/MIR/lit.local.cfg
Modified:
    llvm/trunk/test/CodeGen/PowerPC/aantidep-def-ec.mir
    llvm/trunk/test/CodeGen/PowerPC/addisdtprelha-nonr3.mir
    llvm/trunk/test/CodeGen/PowerPC/no-rlwimi-trivial-commute.mir
    llvm/trunk/test/lit.cfg

Removed: llvm/trunk/test/CodeGen/MIR/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MIR/lit.local.cfg?rev=265349&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/MIR/lit.local.cfg (original)
+++ llvm/trunk/test/CodeGen/MIR/lit.local.cfg (removed)
@@ -1,2 +0,0 @@
-config.suffixes = ['.mir']
-

Modified: llvm/trunk/test/CodeGen/PowerPC/aantidep-def-ec.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/aantidep-def-ec.mir?rev=265350&r1=265349&r2=265350&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/aantidep-def-ec.mir (original)
+++ llvm/trunk/test/CodeGen/PowerPC/aantidep-def-ec.mir Mon Apr  4 16:23:44 2016
@@ -45,6 +45,7 @@ name:            mm_update_next_owner
 alignment:       4
 exposesReturnsTwice: false
 hasInlineAsm:    true
+allVRegsAllocated: true
 isSSA:           false
 tracksRegLiveness: true
 tracksSubRegLiveness: false

Modified: llvm/trunk/test/CodeGen/PowerPC/addisdtprelha-nonr3.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/addisdtprelha-nonr3.mir?rev=265350&r1=265349&r2=265350&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/addisdtprelha-nonr3.mir (original)
+++ llvm/trunk/test/CodeGen/PowerPC/addisdtprelha-nonr3.mir Mon Apr  4 16:23:44 2016
@@ -27,6 +27,7 @@ name:            test1
 alignment:       4
 exposesReturnsTwice: false
 hasInlineAsm:    false
+allVRegsAllocated: true
 isSSA:           false
 tracksRegLiveness: true
 tracksSubRegLiveness: false

Modified: llvm/trunk/test/CodeGen/PowerPC/no-rlwimi-trivial-commute.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/no-rlwimi-trivial-commute.mir?rev=265350&r1=265349&r2=265350&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/no-rlwimi-trivial-commute.mir (original)
+++ llvm/trunk/test/CodeGen/PowerPC/no-rlwimi-trivial-commute.mir Mon Apr  4 16:23:44 2016
@@ -1,4 +1,4 @@
-# RUN: llc -start-after=dead-mi-elimination -stop-after=twoaddressinstruction -o /dev/null %s | FileCheck %s
+# RUN: llc -start-after=dead-mi-elimination -stop-after=twoaddressinstruction -o /dev/null %s 2>&1 | FileCheck %s
 
 --- |
   target datalayout = "E-m:e-i64:64-n32:64"

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=265350&r1=265349&r2=265350&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Mon Apr  4 16:23:44 2016
@@ -41,7 +41,7 @@ config.test_format = lit.formats.ShTest(
 
 # suffixes: A list of file extensions to treat as test files. This is overriden
 # by individual lit.local.cfg files in the test subdirectories.
-config.suffixes = ['.ll', '.c', '.cxx', '.test', '.txt', '.s']
+config.suffixes = ['.ll', '.c', '.cxx', '.test', '.txt', '.s', '.mir']
 
 # excludes: A list of directories to exclude from the testsuite. The 'Inputs'
 # subdirectories contain auxiliary inputs for various tests in their parent




More information about the llvm-commits mailing list