[llvm] r371171 - [MIR] Change test case to read from stdin instead of file

Mikael Holmen via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 23:55:54 PDT 2019


Author: uabelho
Date: Thu Sep  5 23:55:54 2019
New Revision: 371171

URL: http://llvm.org/viewvc/llvm-project?rev=371171&view=rev
Log:
[MIR] Change test case to read from stdin instead of file

The

    ;CHECK: bb
    ;CHECK-NEXT: %namedVReg1353:_(p0) = COPY $d0

parts of the test case failed when the tests were placed in a directory
including "bb" in the path, since the full path of the file is then
output in the
 ; ModuleID = '/repo/bb/
line which the CHECK matched on and then the CHECK-NEXT failed.

Modified:
    llvm/trunk/test/CodeGen/MIR/AArch64/mirnamer.mir

Modified: llvm/trunk/test/CodeGen/MIR/AArch64/mirnamer.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MIR/AArch64/mirnamer.mir?rev=371171&r1=371170&r2=371171&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/MIR/AArch64/mirnamer.mir (original)
+++ llvm/trunk/test/CodeGen/MIR/AArch64/mirnamer.mir Thu Sep  5 23:55:54 2019
@@ -1,4 +1,4 @@
-# RUN: llc -mtriple aarch64-apple-ios -run-pass mir-namer -verify-machineinstrs -o - %s | FileCheck %s
+# RUN: llc -x mir -mtriple aarch64-apple-ios -run-pass mir-namer -verify-machineinstrs -o - < %s | FileCheck %s
 
 ---
 name: foo




More information about the llvm-commits mailing list