mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
Convert another CodeGen test into a MC test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204412 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4eb2d228e9
commit
aeb12e91d1
@ -1,51 +0,0 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-macosx10.7 -disable-cfi | FileCheck %s
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-macosx10.6 -disable-cfi | FileCheck %s
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-macosx10.5 -disable-cfi | FileCheck --check-prefix=OLD %s
|
||||
; RUN: llc < %s -mtriple=i686-apple-macosx10.6 -disable-cfi | FileCheck %s
|
||||
; RUN: llc < %s -mtriple=i686-apple-macosx10.5 -disable-cfi | FileCheck --check-prefix=OLD %s
|
||||
; RUN: llc < %s -mtriple=i686-apple-macosx10.4 -disable-cfi | FileCheck --check-prefix=OLD %s
|
||||
|
||||
define private void @foo() {
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @bar() {
|
||||
call void @foo()
|
||||
ret void;
|
||||
}
|
||||
|
||||
; CHECK: l_foo: ## @foo
|
||||
; CHECK-NEXT: Ltmp0:
|
||||
|
||||
; CHECK: _bar: ## @bar
|
||||
; CHECK-NEXT: Ltmp2:
|
||||
|
||||
; CHECK: ## FDE CIE Offset
|
||||
; CHECK-NEXT: .long
|
||||
; CHECK-NEXT: Ltmp[[NUM1:[0-9]*]]:
|
||||
; CHECK-NEXT: Ltmp[[NUM2:[0-9]*]] = Ltmp0-Ltmp[[NUM1]] ## FDE initial location
|
||||
; CHECK-NEXT: {{.quad|.long}} Ltmp[[NUM2]]
|
||||
|
||||
|
||||
; CHECK: ## FDE CIE Offset
|
||||
; CHECK-NEXT: .long
|
||||
; CHECK-NEXT: Ltmp[[NUM1:[0-9]*]]:
|
||||
; CHECK-NEXT: Ltmp[[NUM2:[0-9]*]] = Ltmp2-Ltmp[[NUM1]] ## FDE initial location
|
||||
; CHECK-NEXT: {{.quad|.long}} Ltmp[[NUM2]]
|
||||
|
||||
|
||||
; OLD: l_foo: ## @foo
|
||||
; OLD-NEXT: Ltmp0:
|
||||
|
||||
; OLD: _bar: ## @bar
|
||||
; OLD-NEXT: Ltmp2:
|
||||
|
||||
; OLD: ## FDE CIE Offset
|
||||
; OLD-NEXT: .long
|
||||
; OLD-NEXT: Ltmp[[NUM1:[0-9]*]]:
|
||||
; OLD-NEXT: {{.quad|.long}} Ltmp0-Ltmp[[NUM1]] ## FDE initial location
|
||||
|
||||
; OLD: ## FDE CIE Offset
|
||||
; OLD-NEXT: .long
|
||||
; OLD-NEXT: Ltmp[[NUM1:[0-9]*]]:
|
||||
; OLD-NEXT: {{.quad|.long}} Ltmp2-Ltmp[[NUM1]] ## FDE initial location
|
29
test/MC/MachO/eh-frame-reloc.s
Normal file
29
test/MC/MachO/eh-frame-reloc.s
Normal file
@ -0,0 +1,29 @@
|
||||
// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.7 -filetype=obj | llvm-readobj -r | FileCheck %s
|
||||
// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.6 -filetype=obj | llvm-readobj -r | FileCheck %s
|
||||
// RUN: llvm-mc < %s -triple=x86_64-apple-macosx10.5 -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=OLD64 %s
|
||||
// RUN: llvm-mc < %s -triple=i686-apple-macosx10.6 -filetype=obj | llvm-readobj -r | FileCheck %s
|
||||
// RUN: llvm-mc < %s -triple=i686-apple-macosx10.5 -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=OLD32 %s
|
||||
// RUN: llvm-mc < %s -triple=i686-apple-macosx10.4 -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=OLD32 %s
|
||||
|
||||
.globl _bar
|
||||
.align 4, 0x90
|
||||
_bar:
|
||||
.cfi_startproc
|
||||
.cfi_endproc
|
||||
|
||||
// CHECK: Relocations [
|
||||
// CHECK-NEXT: ]
|
||||
|
||||
// OLD32: Relocations [
|
||||
// OLD32-NEXT: Section __eh_frame {
|
||||
// OLD32-NEXT: 0x20 0 2 n/a GENERIC_RELOC_LOCAL_SECTDIFF 1 -
|
||||
// OLD32-NEXT: 0x0 0 2 n/a GENERIC_RELOC_PAIR 1 -
|
||||
// OLD32-NEXT: }
|
||||
// OLD32-NEXT: ]
|
||||
|
||||
// OLD64: Relocations [
|
||||
// OLD64-NEXT: Section __eh_frame {
|
||||
// OLD64-NEXT: 0x20 0 3 1 X86_64_RELOC_SUBTRACTOR 0 _bar.eh
|
||||
// OLD64-NEXT: 0x20 0 3 1 X86_64_RELOC_UNSIGNED 0 _bar
|
||||
// OLD64-NEXT: }
|
||||
// OLD64-NEXT: ]
|
Loading…
Reference in New Issue
Block a user