[llvm] r190348 - Expand test to make sure that we can generate compact unwind from an ASM file.
Bill Wendling
isanbard at gmail.com
Mon Sep 9 13:12:37 PDT 2013
Author: void
Date: Mon Sep 9 15:12:36 2013
New Revision: 190348
URL: http://llvm.org/viewvc/llvm-project?rev=190348&view=rev
Log:
Expand test to make sure that we can generate compact unwind from an ASM file.
Modified:
llvm/trunk/test/CodeGen/X86/no-compact-unwind.ll
Modified: llvm/trunk/test/CodeGen/X86/no-compact-unwind.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/no-compact-unwind.ll?rev=190348&r1=190347&r2=190348&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/no-compact-unwind.ll (original)
+++ llvm/trunk/test/CodeGen/X86/no-compact-unwind.ll Mon Sep 9 15:12:36 2013
@@ -1,6 +1,10 @@
; RUN: llc < %s -mtriple x86_64-apple-macosx10.8.0 -filetype=obj -o - \
; RUN: | llvm-objdump -triple x86_64-apple-macosx10.8.0 -s - \
-; RUN: | FileCheck %s
+; RUN: | FileCheck -check-prefix=CU %s
+; RUN: llc < %s -mtriple x86_64-apple-darwin11 \
+; RUN: | llvm-mc -filetype=obj \
+; RUN: | llvm-objdump -triple x86_64-apple-darwin11 -s - \
+; RUN: | FileCheck -check-prefix=FROM-ASM %s
%"struct.dyld::MappedRanges" = type { [400 x %struct.anon], %"struct.dyld::MappedRanges"* }
%struct.anon = type { %class.ImageLoader*, i64, i64 }
@@ -14,11 +18,14 @@ declare void @OSMemoryBarrier() optsize
; This compact unwind encoding indicates that we could not generate correct
; compact unwind encodings for this function. This then defaults to using the
; DWARF EH frame.
-;
-; CHECK: Contents of section __compact_unwind:
-; CHECK-NEXT: 0048 00000000 00000000 42000000 00000004
-; CHECK-NEXT: 0058 00000000 00000000 00000000 00000000
-;
+
+; CU: Contents of section __compact_unwind:
+; CU-NEXT: 0048 00000000 00000000 42000000 00000004
+; CU-NEXT: 0058 00000000 00000000 00000000 00000000
+
+; FROM-ASM: Contents of section __compact_unwind:
+; FROM-ASM-NEXT: 0048 00000000 00000000 42000000 00000004
+; FROM-ASM-NEXT: 0058 00000000 00000000 00000000 00000000
define void @func(%class.ImageLoader* %image) optsize ssp uwtable {
entry:
More information about the llvm-commits
mailing list