Imported Upstream version 5.18.0.207

Former-commit-id: 3b152f462918d427ce18620a2cbe4f8b79650449
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-11-17 08:23:10 +00:00
parent 8e12397d70
commit eb85e2fc17
28480 changed files with 72 additions and 3866936 deletions

View File

@ -1,15 +0,0 @@
target triple = "thumbv7-linux-gnueabihf"
define i32 @foo(i32 %a, i32 %b) #0 {
entry:
%add = add i32 %a, %b
ret i32 %add
}
define i32 @bar(i32 %a, i32 %b) #0 {
entry:
%add = add i32 %a, %b
ret i32 %add
}
attributes #0 = { "target-features"="+thumb-mode" }

View File

@ -1,9 +0,0 @@
; Check that we don't crash on target-specific inline asm directives.
;
; RUN: llvm-as < %s > %t
; RUN: llvm-lto -o /dev/null %t -mcpu armv4t
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv4t-unknown-linux"
module asm ".fnstart"

View File

@ -1,32 +0,0 @@
; Testcase to check that functions from a Thumb module can be inlined in an
; ARM function.
;
; RUN: llvm-as %s -o %t1.bc
; RUN: llvm-as %p/Inputs/thumb.ll -o %t2.bc
; RUN: llvm-lto -exported-symbol main \
; RUN: -exported-symbol bar \
; RUN: -filetype=asm \
; RUN: -o - \
; RUN: %t1.bc %t2.bc 2> %t3.out| FileCheck %s
; RUN: FileCheck --allow-empty --input-file %t3.out --check-prefix STDERR %s
target triple = "armv7-linux-gnueabihf"
; CHECK: .code 32
; CHECK-NEXT: main
; CHECK-NEXT: .fnstart
; CHECK-NEXT: mov r0, #30
; CHECK: .code 16
; CHECK-NEXT: .thumb_func
; CHECK-NEXT: bar
declare i32 @foo(i32 %a, i32 %b);
define i32 @main() {
entry:
%add = call i32 @foo(i32 10, i32 20)
ret i32 %add
}
; STDERR-NOT: warning: Linking two modules of different target triples:

View File

@ -1,2 +0,0 @@
if not 'ARM' in config.root.targets:
config.unsupported = True

View File

@ -1,18 +0,0 @@
; Check that user-defined runtime library function __addsf3vfp is not removed
;
; RUN: llvm-as <%s >%t1
; RUN: llvm-lto -o %t2 %t1 -mcpu arm1176jz-s
; RUN: llvm-nm %t2 | FileCheck %s
target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
target triple = "thumbv7-apple-ios"
; CHECK: ___addsf3vfp
define float @__addsf3vfp(float %a, float %b) #0 {
entry:
%add = fadd float %a, %b
ret float %add
}
attributes #0 = { "target-cpu"="arm1176jzf-s"}