[llvm] r204412 - Convert another CodeGen test into a MC test.

Rafael Espindola rafael.espindola at gmail.com
Thu Mar 20 16:35:01 PDT 2014


Author: rafael
Date: Thu Mar 20 18:35:00 2014
New Revision: 204412

URL: http://llvm.org/viewvc/llvm-project?rev=204412&view=rev
Log:
Convert another CodeGen test into a MC test.

Added:
    llvm/trunk/test/MC/MachO/eh-frame-reloc.s
Removed:
    llvm/trunk/test/CodeGen/X86/pr10420.ll

Removed: llvm/trunk/test/CodeGen/X86/pr10420.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr10420.ll?rev=204411&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr10420.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr10420.ll (removed)
@@ -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

Added: llvm/trunk/test/MC/MachO/eh-frame-reloc.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/eh-frame-reloc.s?rev=204412&view=auto
==============================================================================
--- llvm/trunk/test/MC/MachO/eh-frame-reloc.s (added)
+++ llvm/trunk/test/MC/MachO/eh-frame-reloc.s Thu Mar 20 18:35:00 2014
@@ -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: ]





More information about the llvm-commits mailing list