diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-09-09 20:12:36 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-09-09 20:12:36 +0000 |
commit | 1c27b315043417a4cc409a6a974dece1c571e9ab (patch) | |
tree | 65277c30eed3a665822d0606f1b88e3633ab57ce | |
parent | 93158ffa9157bac7d026f99637ac17dd9d4f6123 (diff) | |
download | bcm5719-llvm-1c27b315043417a4cc409a6a974dece1c571e9ab.tar.gz bcm5719-llvm-1c27b315043417a4cc409a6a974dece1c571e9ab.zip |
Expand test to make sure that we can generate compact unwind from an ASM file.
llvm-svn: 190348
-rw-r--r-- | llvm/test/CodeGen/X86/no-compact-unwind.ll | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/no-compact-unwind.ll b/llvm/test/CodeGen/X86/no-compact-unwind.ll index 2f34b6f7997..fcc85371dfe 100644 --- a/llvm/test/CodeGen/X86/no-compact-unwind.ll +++ b/llvm/test/CodeGen/X86/no-compact-unwind.ll @@ -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: |