diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-12 20:26:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-12 20:26:13 +0000 |
commit | 9a167eeaff461e705ec06f0fd5396a549da17fd0 (patch) | |
tree | 7b4f7740aea6a95c2aaf7f683ef7b7c3def63349 | |
parent | 00e861ed57ffa8bb6cfe011d518f6a947d899181 (diff) | |
download | bcm5719-llvm-9a167eeaff461e705ec06f0fd5396a549da17fd0.tar.gz bcm5719-llvm-9a167eeaff461e705ec06f0fd5396a549da17fd0.zip |
Add error-reporting tests for platforms that don't support segmented stacks.
Patch by Brian Anderson.
llvm-svn: 148042
-rw-r--r-- | llvm/test/CodeGen/X86/segmented-stacks.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/segmented-stacks.ll b/llvm/test/CodeGen/X86/segmented-stacks.ll index 3650304a088..899ee88e0b1 100644 --- a/llvm/test/CodeGen/X86/segmented-stacks.ll +++ b/llvm/test/CodeGen/X86/segmented-stacks.ll @@ -13,6 +13,17 @@ ; RUN: llc < %s -mtriple=i686-mingw32 -segmented-stacks -filetype=obj ; RUN: llc < %s -mtriple=x86_64-freebsd -segmented-stacks -filetype=obj +; RUN: not llc < %s -mtriple=x86_64-solaris -segmented-stacks 2> %t.log +; RUN: FileCheck %s -input-file=%t.log -check-prefix=X64-Solaris +; RUN: not llc < %s -mtriple=x86_64-mingw32 -segmented-stacks 2> %t.log +; RUN: FileCheck %s -input-file=%t.log -check-prefix=X64-MinGW +; RUN: not llc < %s -mtriple=i686-freebsd -segmented-stacks 2> %t.log +; RUN: FileCheck %s -input-file=%t.log -check-prefix=X32-FreeBSD + +; X64-Solaris: Segmented stacks not supported on this platform +; X64-MinGW: Segmented stacks not supported on this platform +; X32-FreeBSD: Segmented stacks not supported on FreeBSD i386 + ; Just to prevent the alloca from being optimized away declare void @dummy_use(i32*, i32) |