[llvm] r345363 - [NFC] Fix the regular expression for BE PPC in update_llc_test_checks.py

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 25 20:30:28 PDT 2018


Author: nemanjai
Date: Thu Oct 25 20:30:28 2018
New Revision: 345363

URL: http://llvm.org/viewvc/llvm-project?rev=345363&view=rev
Log:
[NFC] Fix the regular expression for BE PPC in update_llc_test_checks.py

Currently, the regular expression that matches the lines of assembly for PPC LE
(ELFv2) does not work for the assembly for BE (ELFv1). This patch fixes it.

Differential revision: https://reviews.llvm.org/D53059

Modified:
    llvm/trunk/utils/UpdateTestChecks/asm.py

Modified: llvm/trunk/utils/UpdateTestChecks/asm.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/UpdateTestChecks/asm.py?rev=345363&r1=345362&r2=345363&view=diff
==============================================================================
--- llvm/trunk/utils/UpdateTestChecks/asm.py (original)
+++ llvm/trunk/utils/UpdateTestChecks/asm.py Thu Oct 25 20:30:28 2018
@@ -52,6 +52,7 @@ ASM_FUNCTION_MIPS_RE = re.compile(
 
 ASM_FUNCTION_PPC_RE = re.compile(
     r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n'
+    r'.*?'
     r'\.Lfunc_begin[0-9]+:\n'
     r'(?:[ \t]+.cfi_startproc\n)?'
     r'(?:\.Lfunc_[gl]ep[0-9]+:\n(?:[ \t]+.*?\n)*)*'




More information about the llvm-commits mailing list