From: Nemanja Ivanovic Date: Fri, 26 Oct 2018 03:30:28 +0000 (+0000) Subject: [NFC] Fix the regular expression for BE PPC in update_llc_test_checks.py X-Git-Tag: android-x86-9.0-r1~11378 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3dfd21e18627f59a7b74945fe8f53019b8488399;p=android-x86%2Fexternal-llvm.git [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345363 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/UpdateTestChecks/asm.py b/utils/UpdateTestChecks/asm.py index 726a653d151..923efd5bbef 100644 --- a/utils/UpdateTestChecks/asm.py +++ b/utils/UpdateTestChecks/asm.py @@ -52,6 +52,7 @@ ASM_FUNCTION_MIPS_RE = re.compile( ASM_FUNCTION_PPC_RE = re.compile( r'^_?(?P[^:]+):[ \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)*)*'