xref: /llvm-project/llvm/test/CodeGen/X86/execstack.ll (revision 6ef767c0758512b285a357436358e0814e72fe9e)
1*6ef767c0SRainer Orth;; Check that .note.GNU-stack sections are emitted on Linux, but not on Solaris.
2*6ef767c0SRainer Orth
3*6ef767c0SRainer Orth; RUN: llc < %s -mtriple=i686-linux | FileCheck %s -check-prefix=CHECK-GNUSTACK
4*6ef767c0SRainer Orth; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=CHECK-GNUSTACK
5*6ef767c0SRainer Orth; RUN: llc < %s -mtriple=i386-solaris | FileCheck %s -check-prefix=CHECK-NOGNUSTACK
6*6ef767c0SRainer Orth; RUN: llc < %s -mtriple=amd64-solaris | FileCheck %s -check-prefix=CHECK-NOGNUSTACK
7*6ef767c0SRainer Orth
8*6ef767c0SRainer Orth; CHECK-GNUSTACK: .section	".note.GNU-stack","",@progbits
9*6ef767c0SRainer Orth; CHECK-NOGNUSTACK-NOT: .section	".note.GNU-stack","",@progbits
10