From: Rafael Espindola Date: Thu, 12 Jan 2012 20:26:13 +0000 (+0000) Subject: Add error-reporting tests for platforms that don't support segmented stacks. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0577c59196565259cf3d6c58860f16ce6fe44823;p=oota-llvm.git Add error-reporting tests for platforms that don't support segmented stacks. Patch by Brian Anderson. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148042 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/segmented-stacks.ll b/test/CodeGen/X86/segmented-stacks.ll index 3650304a088..899ee88e0b1 100644 --- a/test/CodeGen/X86/segmented-stacks.ll +++ b/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)