llvm.org GIT mirror llvm / e09833c
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364668 91177308-0d34-0410-b5e6-96231b3b80d8 Jinsong Ji 1 year, 5 months ago
2 changed file(s) with 21 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
1 ; RUN: llc < %s -mtriple=armv7-apple-darwin -mcpu=cortex-a8 | FileCheck %s
12 ; Check if the f32 load / store pair are optimized to i32 load / store.
23 ; rdar://8944252
34
45 define void @t(i32 %width, float* nocapture %src, float* nocapture %dst, i32 %index) nounwind {
56 ; CHECK-LABEL: t:
7 ; CHECK: @ %bb.0: @ %entry
8 ; CHECK-NEXT: cmp r0, #0
9 ; CHECK-NEXT: bxeq lr
10 ; CHECK-NEXT: LBB0_1: @ %bb
11 ; CHECK-NEXT: @ =>This Inner Loop Header: Depth=1
12 ; CHECK-NEXT: ldr r9, [r1], r3
13 ; CHECK-NEXT: subs r0, r0, #1
14 ; CHECK-NEXT: str r9, [r2], #4
15 ; CHECK-NEXT: bne LBB0_1
16 ; CHECK-NEXT: @ %bb.2: @ %return
17 ; CHECK-NEXT: bx lr
618 entry:
719 %src6 = bitcast float* %src to i8*
820 %0 = icmp eq i32 %width, 0
921 br i1 %0, label %return, label %bb
1022
1123 bb:
12 ; CHECK: ldr [[REGISTER:(r[0-9]+)]], [{{r[0-9]+}}], {{r[0-9]+}}
13 ; CHECK: str [[REGISTER]], [{{r[0-9]+}}], #4
1424 %j.05 = phi i32 [ %2, %bb ], [ 0, %entry ]
1525 %tmp = mul i32 %j.05, %index
1626 %uglygep = getelementptr i8, i8* %src6, i32 %tmp
102102 r'([ \t]*.cfi_endproc\n[\s]*)?'
103103 r'^[ \t]*;[ \t]--[ \t]End[ \t]function',
104104 flags=(re.M | re.S))
105
106 ASM_FUNCTION_ARM_DARWIN_RE = re.compile(
107 r'^[ \t]*\.globl[ \t]*_(?P[^ \t])[ \t]*@[ \t]--[ \t]Begin[ \t]function[ \t](?P=func)'
108 r'(?P.*?)'
109 r'^_(?P=func):\n[ \t]*'
110 r'(?P.*?)'
111 r'^[ \t]*@[ \t]--[ \t]End[ \t]function',
112 flags=(re.M | re.S ))
105113
106114 ASM_FUNCTION_ARM_MACHO_RE = re.compile(
107115 r'^_(?P[^:]+):[ \t]*\n'
300308 'arm64': (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_RE),
301309 'arm64-apple-ios': (scrub_asm_arm_eabi, ASM_FUNCTION_AARCH64_DARWIN_RE),
302310 'armv7-apple-ios' : (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_IOS_RE),
311 'armv7-apple-darwin': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_DARWIN_RE),
303312 'thumb': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_RE),
304313 'thumb-macho': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_MACHO_RE),
305314 'thumbv5-macho': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_MACHO_RE),