summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-12 20:26:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-12 20:26:13 +0000
commit9a167eeaff461e705ec06f0fd5396a549da17fd0 (patch)
tree7b4f7740aea6a95c2aaf7f683ef7b7c3def63349 /llvm/test/CodeGen
parent00e861ed57ffa8bb6cfe011d518f6a947d899181 (diff)
downloadbcm5719-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
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/segmented-stacks.ll11
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)
OpenPOWER on IntegriCloud