OSDN Git Service

[NFC] Fix the regular expression for BE PPC in update_llc_test_checks.py
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 26 Oct 2018 03:30:28 +0000 (03:30 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 26 Oct 2018 03:30:28 +0000 (03:30 +0000)
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

utils/UpdateTestChecks/asm.py

index 726a653..923efd5 100644 (file)
@@ -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)*)*'