diff options
author | Jinsong Ji <jji@us.ibm.com> | 2019-06-28 18:07:19 +0000 |
---|---|---|
committer | Jinsong Ji <jji@us.ibm.com> | 2019-06-28 18:07:19 +0000 |
commit | 7d78e5cc81150ce8bddb53dcbb4f70e3ee409882 (patch) | |
tree | fee454267e292859d3bd2edbfdd6b93277ed63e9 /llvm/utils/UpdateTestChecks/asm.py | |
parent | 978a08c8854f2b244f33c805df12c2a79ebd52a6 (diff) | |
download | llvm-7d78e5cc81150ce8bddb53dcbb4f70e3ee409882.zip llvm-7d78e5cc81150ce8bddb53dcbb4f70e3ee409882.tar.gz llvm-7d78e5cc81150ce8bddb53dcbb4f70e3ee409882.tar.bz2 |
[UpdateChecks] Add support for armv7-apple-darwin
armv7-apple-darwin was not supported well, the script can't generate
checks.
https://reviews.llvm.org/D60601/new/#inline-568671
Differential Revision: https://reviews.llvm.org/D63939
llvm-svn: 364668
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 5cb4fea..ab64949 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -104,6 +104,14 @@ ASM_FUNCTION_AARCH64_DARWIN_RE = re.compile( r'^[ \t]*;[ \t]--[ \t]End[ \t]function', flags=(re.M | re.S)) +ASM_FUNCTION_ARM_DARWIN_RE = re.compile( + r'^[ \t]*\.globl[ \t]*_(?P<func>[^ \t])[ \t]*@[ \t]--[ \t]Begin[ \t]function[ \t](?P=func)' + r'(?P<directives>.*?)' + r'^_(?P=func):\n[ \t]*' + r'(?P<body>.*?)' + r'^[ \t]*@[ \t]--[ \t]End[ \t]function', + flags=(re.M | re.S )) + ASM_FUNCTION_ARM_MACHO_RE = re.compile( r'^_(?P<func>[^:]+):[ \t]*\n' r'([ \t]*.cfi_startproc\n[ \t]*)?' @@ -301,6 +309,7 @@ def build_function_body_dictionary_for_triple(args, raw_tool_output, triple, pre 'arm64': (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_RE), 'arm64-apple-ios': (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_DARWIN_RE), 'armv7-apple-ios' : (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_IOS_RE), + 'armv7-apple-darwin': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_DARWIN_RE), 'thumb': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_RE), 'thumb-macho': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_MACHO_RE), 'thumbv5-macho': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_MACHO_RE), |