Fix: [MCParser] Correctly handle CRLF line ends when consuming line comments
authorTozer <stephen.tozer@sony.com>
Tue, 17 Aug 2021 15:14:12 +0000 (16:14 +0100)
committerTozer <stephen.tozer@sony.com>
Tue, 17 Aug 2021 15:16:19 +0000 (16:16 +0100)
Fixes an issue with revision 5c6f748c.

Move the test added in the above commit into the X86 folder, ensuring
that it is only run on targets where its triple is valid.

llvm/.gitattributes
llvm/test/tools/llvm-mca/X86/directives-handle-crlf.s [moved from llvm/test/tools/llvm-mca/directives-handle-crlf.s with 96% similarity]

index b41ae6a..8812053 100644 (file)
@@ -17,4 +17,4 @@ test/YAMLParser/spec-09-02.test binary
 # binary and not autoconvert line endings (for example, when core.autocrlf is
 # on).
 test/MC/AsmParser/preserve-comments-crlf.s binary
-test/tools/llvm-mca/directives-handle-crlf.s binary
+test/tools/llvm-mca/X86/directives-handle-crlf.s binary
@@ -1,4 +1,4 @@
-# RUN: llvm-mca -mtriple=x86_64-unknown-unknown %s\r
-# LLVM-MCA-BEGIN foo\r
-addl   $42, %eax\r
-# LLVM-MCA-END\r
+# RUN: llvm-mca -mtriple=x86_64-unknown-unknown %s
+# LLVM-MCA-BEGIN foo
+addl   $42, %eax
+# LLVM-MCA-END