1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mcpu=generic -mtriple=i686-linux -verify-machineinstrs | FileCheck %s 3; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -verify-machineinstrs | FileCheck %s 4 5; This test is standalone because segmented-stacks.ll generates 6; object-files with both .note.GNU-split-stack (for the split-stack 7; functions) and .note.GNU-no-split-stack sections (for the 8; non-split-stack functions). But a split-stack function without a 9; stack frame should have a .note.GNU-split-stack section regardless 10; of any other contents of the compilation unit. 11 12define void @test_nostack() #0 { 13; CHECK-LABEL: test_nostack: 14; CHECK: # %bb.0: 15; CHECK-NEXT: ret{{[l|q]}} 16 ret void 17} 18 19attributes #0 = { "split-stack" } 20 21; CHECK: .section ".note.GNU-split-stack","",@progbits 22; CHECK: .section ".note.GNU-no-split-stack","",@progbits 23