Add error-reporting tests for platforms that don't support segmented stacks.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Jan 2012 20:26:13 +0000 (20:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Jan 2012 20:26:13 +0000 (20:26 +0000)
Patch by Brian Anderson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148042 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/segmented-stacks.ll

index 3650304a0880ecc7dd579b8e47dc7f8073ec64eb..899ee88e0b1124db16424910827cf7d44ed0cdce 100644 (file)
 ; 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)