diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-09-09 20:10:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-09-09 20:10:54 +0000 |
commit | 4f02c41a36c8b8a8da7eae21223a15c89fa6e9dd (patch) | |
tree | 0bfb5747ce57b6793e57b2193704034fe32edbb7 /test/CodeGen/X86/compact-unwind.ll | |
parent | 28b020d373a0706afc19c869ac4efce4a83e6090 (diff) | |
download | llvm-4f02c41a36c8b8a8da7eae21223a15c89fa6e9dd.tar.gz llvm-4f02c41a36c8b8a8da7eae21223a15c89fa6e9dd.tar.bz2 llvm-4f02c41a36c8b8a8da7eae21223a15c89fa6e9dd.tar.xz |
Expand test to make sure that we can generate compact unwind from an ASM file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/compact-unwind.ll')
-rw-r--r-- | test/CodeGen/X86/compact-unwind.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGen/X86/compact-unwind.ll b/test/CodeGen/X86/compact-unwind.ll index 6ee9566f9a..e1c51c7de1 100644 --- a/test/CodeGen/X86/compact-unwind.ll +++ b/test/CodeGen/X86/compact-unwind.ll @@ -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 |