Imported Upstream version 5.18.0.167

Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-10-20 08:25:10 +00:00
parent e19d552987
commit b084638f15
28489 changed files with 184 additions and 3866856 deletions

View File

@ -1,42 +0,0 @@
// RUN: llvm-mc %s -triple=armv7-linux-gnueabi -filetype=obj -o - | \
// RUN: llvm-readobj -s -sr -sd | FileCheck %s
.syntax unified
.eabi_attribute 6, 10
.eabi_attribute 8, 1
.eabi_attribute 9, 2
.fpu neon
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.file "/home/espindola/llvm/llvm/test/CodeGen/ARM/2010-11-30-reloc-movt.ll"
.text
.globl barf
.align 2
.type barf,%function
barf: @ @barf
@ %bb.0: @ %entry
push {r11, lr}
movw r0, :lower16:a
movt r0, :upper16:a
bl foo
pop {r11, pc}
.Ltmp0:
.size barf, .Ltmp0-barf
// CHECK: Section {
// CHECK: Name: .text
// CHECK: SectionData (
// CHECK-NEXT: 0000: 00482DE9 000000E3 000040E3 FEFFFFEB
// CHECK-NEXT: 0010: 0088BDE8
// CHECK-NEXT: )
// CHECK: Name: .rel.text
// CHECK: Relocations [
// CHECK-NEXT: 0x4 R_ARM_MOVW_ABS_NC a
// CHECK-NEXT: 0x8 R_ARM_MOVT_ABS
// CHECK-NEXT: 0xC R_ARM_CALL foo
// CHECK-NEXT: ]

View File

@ -1,6 +0,0 @@
@ RUN: llvm-mc -triple arm-eabi %s -o - | FileCheck %s
@ CHECK: test:
@ CHECK: bl r1
test:
bl r1

View File

@ -1,48 +0,0 @@
# RUN: llvm-mc -filetype=obj -triple armv7-linux-gnueabi %s -o - \
# RUN: | llvm-objdump -no-show-raw-insn -triple armv7 -disassemble - | FileCheck %s
# On ARM each instruction is 4 bytes long so padding for individual
# instructions should not be inserted. However, for bundle-locked groups
# it can be.
.syntax unified
.text
.bundle_align_mode 4
bx lr
and r1, r1, r2
and r1, r1, r2
.bundle_lock
bx r9
bx r8
.bundle_unlock
# CHECK: c: nop
# CHECK-NEXT: 10: bx
# CHECK-NEXT: 14: bx
# pow2 here
.align 4
bx lr
.bundle_lock
bx r9
bx r9
bx r9
bx r8
.bundle_unlock
# CHECK: 20: bx
# CHECK-NEXT: 24: nop
# CHECK-NEXT: 28: nop
# CHECK-NEXT: 2c: nop
# CHECK-NEXT: 30: bx
.align 4
foo:
b foo
.long 3892240112
.long 3892240112
.long 3892240112
.long 3892240112
.long 3892240112
.long 3892240112
# CHECK: 40: b

View File

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

View File

@ -1,41 +0,0 @@
# RUN: llvm-mc -filetype=obj -triple armv7-linux-gnueabi %s -o - \
# RUN: | llvm-objdump -no-show-raw-insn -triple armv7 -disassemble - | FileCheck %s
.syntax unified
.text
.bundle_align_mode 4
bx lr
and r1, r1, r2
and r1, r1, r2
.bundle_lock align_to_end
bx r9
.bundle_unlock
# No padding required here because bx just happens to be in the
# right offset.
# CHECK: 8: and
# CHECK-NEXT: c: bx
bx lr
and r1, r1, r2
.bundle_lock align_to_end
bx r9
.bundle_unlock
# A 4-byte padding is needed here
# CHECK: 18: nop
# CHECK-NEXT: 1c: bx
bx lr
and r1, r1, r2
.bundle_lock align_to_end
bx r9
bx r9
bx r9
.bundle_unlock
# A 12-byte padding is needed here to push the group to the end of the next
# bundle
# CHECK: 28: nop
# CHECK-NEXT: 2c: nop
# CHECK-NEXT: 30: nop
# CHECK-NEXT: 34: bx

View File

@ -1,3 +0,0 @@
.section .foobar,"ax",%progbits
nop
.word 32

View File

@ -1,3 +0,0 @@
.section .foobar,"",%progbits
nop
.word 32

View File

@ -1,3 +0,0 @@
.section .foobar,"aw",%progbits
nop
.word 32

View File

@ -1,2 +0,0 @@
.section .foobar,"",%progbits
.word 32

View File

@ -1,2 +0,0 @@
.section .foobar,"aw",%progbits
.word 32

View File

@ -1,12 +0,0 @@
.section .foo
.word 30
.word 31
.word 32
.word 33
nop
.word 34
.word 35
.word 36
.word 37
.word 38
nop

View File

@ -1,3 +0,0 @@
.section .foobar,"aw",%progbits
.word 32
nop

View File

@ -1,5 +0,0 @@
.text
.syntax unified
.eabi_attribute 67, "2.09" @ Tag_conformance
.cpu arm7tdmi
.eabi_attribute 6, 2 @ Tag_CPU_arch

View File

@ -1 +0,0 @@
.ident "LLVM ARM Compiler"

View File

@ -1,14 +0,0 @@
# RUN: not llvm-mc -triple thumbv7-windows -incremental-linker-compatible -filetype obj -o /dev/null 2>&1 %s \
# RUN: | FileCheck %s
.def invalid_relocation
.type 32
.scl 2
.endef
.global invalid_relocation
.thumb_func
invalid_relocation:
adr r0, invalid_relocation+1
# CHECK: LLVM ERROR: unsupported relocation type: fixup_t2_adr_pcrel_12

View File

@ -1,13 +0,0 @@
; RUN: llvm-mc -triple armv7-windows-msvc -filetype obj -o - %s
.syntax unified
.thumb
.text
.global function
.thumb_func
function:
; this is a comment
mov r0, #42 ; this # was not
bx lr

View File

@ -1,37 +0,0 @@
@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
@ RUN: | llvm-readobj -r - | FileCheck -check-prefix CHECK-RELOCATIONS %s
@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
@ RUN: | llvm-objdump -d - | FileCheck -check-prefix CHECK-ENCODING %s
.syntax unified
.thumb
.text
.def truncation
.scl 3
.type 32
.endef
.align 2
.thumb_func
truncation:
movw r0, :lower16:.Lerange
movt r0, :upper16:.Lerange
bx lr
.section .rdata,"rd"
.Lbuffer:
.zero 65536
.Lerange:
.asciz "-erange"
@ CHECK-RELOCATIONS: Relocations [
@ CHECK-RELOCATIONS: .text {
@ CHECK-RELOCATIONS: 0x0 IMAGE_REL_ARM_MOV32T .rdata
@ CHECK-RELOCATIONS-NOT: 0x4 IMAGE_REL_ARM_MOV32T .rdata
@ CHECK-RELOCATIONS: }
@ CHECK-RELOCATIONS: ]
@ CHECK-ENCODING: 0: 40 f2 00 00
@ CHECK-ENCODING-NEXT: 4: c0 f2 01 00

View File

@ -1,58 +0,0 @@
@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
@ RUN: | llvm-readobj -s - | FileCheck %s
.syntax unified
.text
.thumb
.section .text,"xr",one_only,a
.def a;
.scl 2;
.type 32;
.endef
a:
movs r0, #65
bx lr
.section .text,"xr",one_only,b
.def b;
.scl 2;
.type 32;
.endef
.thumb_func
b:
movs r0, #66
bx lr
@ CHECK: Sections [
@ CHECK: Section {
@ CHECK: Name: .text
@ CHECK: Characteristics [
@ CHECK: IMAGE_SCN_CNT_CODE
@ CHECK: IMAGE_SCN_MEM_16BIT
@ CHECK: IMAGE_SCN_MEM_EXECUTE
@ CHECK: IMAGE_SCN_MEM_READ
@ CHECK: ]
@ CHECK: }
@ CHECK: Section {
@ CHECK: Name: .text
@ CHECK: Characteristics [
@ CHECK: IMAGE_SCN_CNT_CODE
@ CHECK: IMAGE_SCN_MEM_16BIT
@ CHECK: IMAGE_SCN_MEM_EXECUTE
@ CHECK: IMAGE_SCN_MEM_READ
@ CHECK: ]
@ CHECK: }
@ CHECK: Section {
@ CHECK: Name: .text
@ CHECK: Characteristics [
@ CHECK: IMAGE_SCN_CNT_CODE
@ CHECK: IMAGE_SCN_MEM_16BIT
@ CHECK: IMAGE_SCN_MEM_EXECUTE
@ CHECK: IMAGE_SCN_MEM_READ
@ CHECK: ]
@ CHECK: }
@ CHECK: ]

View File

@ -1,30 +0,0 @@
@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
@ RUN: | llvm-readobj -s - | FileCheck %s
.syntax unified
.thumb
.text
.def function
.type 32
.scl 2
.endef
.global function
.thumb_func
function:
bx lr
@ CHECK: Sections [
@ CHECK: Section {
@ CHECK: Name: .text
@ CHECK: Characteristics [
@ CHECK: IMAGE_SCN_ALIGN_4BYTES
@ CHECK: IMAGE_SCN_CNT_CODE
@ CHECK: IMAGE_SCN_MEM_16BIT
@ CHECK: IMAGE_SCN_MEM_EXECUTE
@ CHECK: IMAGE_SCN_MEM_PURGEABLE
@ CHECK: IMAGE_SCN_MEM_READ
@ CHECK: ]
@ CHECK: }
@ CHECK: ]

View File

@ -1,16 +0,0 @@
@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \
@ RUN: | llvm-readobj -s - | FileCheck %s
.syntax unified
.thumb
.text
.global function
.thumb_func
function:
bx lr
@ CHECK: Section
@ CHECK-DAG: IMAGE_SCN_CNT_CODE
@ CHECK-DAG: IMAGE_SCN_MEM_16BIT

Some files were not shown because too many files have changed in this diff Show More