[llvm] r190347 - 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:10:55 PDT 2013


Author: void
Date: Mon Sep  9 15:10:54 2013
New Revision: 190347

URL: http://llvm.org/viewvc/llvm-project?rev=190347&view=rev
Log:
Expand test to make sure that we can generate compact unwind from an ASM file.

Modified:
    llvm/trunk/test/CodeGen/X86/compact-unwind.ll

Modified: llvm/trunk/test/CodeGen/X86/compact-unwind.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/compact-unwind.ll?rev=190347&r1=190346&r2=190347&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/compact-unwind.ll (original)
+++ llvm/trunk/test/CodeGen/X86/compact-unwind.ll Mon Sep  9 15:10:54 2013
@@ -2,6 +2,10 @@
 ; RUN: llc < %s -disable-fp-elim -mtriple x86_64-apple-darwin11 -filetype=obj -o - \
 ; RUN:  | llvm-objdump -triple x86_64-apple-darwin11 -s - \
 ; RUN:  | FileCheck -check-prefix=CU %s
+; RUN: llc < %s -disable-fp-elim -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
 
 %ty = type { i8* }
 
@@ -12,11 +16,15 @@
 
 ; Even though we can't encode %rax into the compact unwind, We still want to be
 ; able to generate a compact unwind encoding in this particular case.
-;
+
 ; CU:      Contents of section __compact_unwind:
 ; CU-NEXT: 0020 00000000 00000000 1e000000 01000101
 ; CU-NEXT: 0030 00000000 00000000 00000000 00000000
 
+; FROM-ASM:      Contents of section __compact_unwind:
+; FROM-ASM-NEXT: 0020 00000000 00000000 1e000000 01000101
+; FROM-ASM-NEXT: 0030 00000000 00000000 00000000 00000000
+
 define i8* @foo(i64 %size) {
   %addr = alloca i64, align 8
   %tmp20 = load i32* @gv, align 4





More information about the llvm-commits mailing list