[llvm] 7eb8238 - [TableGen] Handle Windows line endings in x86-fold-tables.td test (#112997)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 09:59:04 PDT 2024
Author: Daniel Paoliello
Date: 2024-10-21T09:58:59-07:00
New Revision: 7eb8238a32516008476b717bc6a2be8c59f7f535
URL: https://github.com/llvm/llvm-project/commit/7eb8238a32516008476b717bc6a2be8c59f7f535
DIFF: https://github.com/llvm/llvm-project/commit/7eb8238a32516008476b717bc6a2be8c59f7f535.diff
LOG: [TableGen] Handle Windows line endings in x86-fold-tables.td test (#112997)
The x86-fold-tables.td has been failing for me and [in
CI](https://buildkite.com/llvm-project/github-pull-requests/builds/111277#0192a122-c5c9-4e4e-bc5b-7532fec99ae4)
if Git happens to decide to check out the baseline file with Windows
line endings.
This fix for this is to add the `--strip-trailing-cr` option to diff to
normalize the line endings before comparing them.
Added:
Modified:
llvm/test/TableGen/x86-fold-tables.td
Removed:
################################################################################
diff --git a/llvm/test/TableGen/x86-fold-tables.td b/llvm/test/TableGen/x86-fold-tables.td
index d6e59bea0000bd..b4edcf6bbfd1be 100644
--- a/llvm/test/TableGen/x86-fold-tables.td
+++ b/llvm/test/TableGen/x86-fold-tables.td
@@ -4,4 +4,4 @@
// 2. cp <generated_file> x86-fold-tables.inc
// RUN: llvm-tblgen -gen-x86-fold-tables -asmwriternum=1 %p/../../lib/Target/X86/X86.td -I %p/../../lib/Target/X86 -I %p/../../include -o %t
-// RUN:
diff %p/x86-fold-tables.inc %t
+// RUN:
diff --strip-trailing-cr %p/x86-fold-tables.inc %t
More information about the llvm-commits
mailing list