From: Tozer Date: Tue, 17 Aug 2021 15:14:12 +0000 (+0100) Subject: Fix: [MCParser] Correctly handle CRLF line ends when consuming line comments X-Git-Tag: upstream/15.0.7~33739 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad40cb8821666a255ad9982b99ea0ce13a57dfaa;p=platform%2Fupstream%2Fllvm.git Fix: [MCParser] Correctly handle CRLF line ends when consuming line comments 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. --- diff --git a/llvm/.gitattributes b/llvm/.gitattributes index b41ae6a..88120531 100644 --- a/llvm/.gitattributes +++ b/llvm/.gitattributes @@ -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 diff --git a/llvm/test/tools/llvm-mca/directives-handle-crlf.s b/llvm/test/tools/llvm-mca/X86/directives-handle-crlf.s similarity index 96% rename from llvm/test/tools/llvm-mca/directives-handle-crlf.s rename to llvm/test/tools/llvm-mca/X86/directives-handle-crlf.s index aa5c0fc..e62cdd2 100644 --- a/llvm/test/tools/llvm-mca/directives-handle-crlf.s +++ b/llvm/test/tools/llvm-mca/X86/directives-handle-crlf.s @@ -1,4 +1,4 @@ -# RUN: llvm-mca -mtriple=x86_64-unknown-unknown %s -# LLVM-MCA-BEGIN foo -addl $42, %eax -# LLVM-MCA-END +# RUN: llvm-mca -mtriple=x86_64-unknown-unknown %s +# LLVM-MCA-BEGIN foo +addl $42, %eax +# LLVM-MCA-END