1 ; RUN: llc < %s -mcpu=generic -mtriple=i686-linux -verify-machineinstrs | FileCheck %s -check-prefix=X32-Linux
2 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -verify-machineinstrs | FileCheck %s -check-prefix=X64-Linux
4 ; This test is standalone because segmented-stacks.ll generates
5 ; object-files with both .note.GNU-split-stack (for the split-stack
6 ; functions) and .note.GNU-no-split-stack sections (for the
7 ; non-split-stack functions). But a split-stack function without a
8 ; stack frame should have a .note.GNU-split-stack section regardless
9 ; of any other contents of the compilation unit.
11 define void @test_nostack() #0 {
15 attributes #0 = { "split-stack" }
17 ; X32-Linux: .section ".note.GNU-split-stack","",@progbits
18 ; X32-Linux: .section ".note.GNU-no-split-stack","",@progbits
20 ; X64-Linux: .section ".note.GNU-split-stack","",@progbits
21 ; X64-Linux: .section ".note.GNU-no-split-stack","",@progbits
23 ; X64-FreeBSD: .section ".note.GNU-split-stack","",@progbits
24 ; X64-FreeBSD: .section ".note.GNU-no-split-stack","",@progbits
26 ; X32-DFlyBSD: .section ".note.GNU-split-stack","",@progbits
27 ; X32-DFlyBSD: .section ".note.GNU-no-split-stack","",@progbits
29 ; X64-DFlyBSD: .section ".note.GNU-split-stack","",@progbits
30 ; X64-DFlyBSD: .section ".note.GNU-no-split-stack","",@progbits