[TableGen] Fix test on macOS
authorShoaib Meenai <smeenai@fb.com>
Thu, 16 Mar 2023 22:43:36 +0000 (15:43 -0700)
committerShoaib Meenai <smeenai@fb.com>
Thu, 16 Mar 2023 22:43:36 +0000 (15:43 -0700)
macOS cmp requires the option to appear before the file names.

llvm/test/TableGen/x86-auto-memfold.td

index 6ffe618..bb2c124 100644 (file)
@@ -1,2 +1,2 @@
 // RUN: llvm-tblgen -gen-x86-fold-tables -asmwriternum=1 %p/../../lib/Target/X86/X86.td -I %p/../../include -I %p/../../lib/Target/X86/ -I %p/../../include/ -I %p/../../lib/Target/ --write-if-changed  -o %t1
-// RUN: cmp %p/../../lib/Target/X86/X86MemFoldTables.inc %t1 --ignore-initial=0:568
+// RUN: cmp --ignore-initial=0:568 %p/../../lib/Target/X86/X86MemFoldTables.inc %t1