llvm.org GIT mirror llvm / 59288a4
Introduce llvm/test/LTO/ARM for arm-specific LTO test(s). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227563 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 5 years ago
3 changed file(s) with 20 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
0 if not 'ARM' in config.root.targets:
1 config.unsupported = True
0 ; Check that user-defined runtime library function __addsf3vfp is not removed
1 ;
2 ; RUN: llvm-as <%s >%t1
3 ; RUN: llvm-lto -o %t2 %t1 -mcpu arm1176jz-s
4 ; RUN: llvm-nm %t2 | FileCheck %s
5
6 target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
7 target triple = "thumbv7-apple-ios"
8
9 ; CHECK: ___addsf3vfp
10
11 define float @__addsf3vfp(float %a, float %b) #0 {
12 entry:
13 %add = fadd float %a, %b
14 ret float %add
15 }
16
17 attributes #0 = { "target-cpu"="arm1176jzf-s"}
+0
-18
test/LTO/runtime-library-subtarget.ll less more
None ; Check that user-defined runtime library function __addsf3vfp is not removed
1 ;
2 ; RUN: llvm-as <%s >%t1
3 ; RUN: llvm-lto -o %t2 %t1 -mcpu arm1176jz-s
4 ; RUN: llvm-nm %t2 | FileCheck %s
5
6 target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
7 target triple = "thumbv7-apple-ios"
8
9 ; CHECK: ___addsf3vfp
10
11 define float @__addsf3vfp(float %a, float %b) #0 {
12 entry:
13 %add = fadd float %a, %b
14 ret float %add
15 }
16
17 attributes #0 = { "target-cpu"="arm1176jzf-s"}