23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mcpu=generic -mtriple=i686-linux -verify-machineinstrs | FileCheck %s3; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -verify-machineinstrs | FileCheck %s4 5; This test is standalone because segmented-stacks.ll generates6; object-files with both .note.GNU-split-stack (for the split-stack7; functions) and .note.GNU-no-split-stack sections (for the8; non-split-stack functions). But a split-stack function without a9; stack frame should have a .note.GNU-split-stack section regardless10; 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 void17}18 19attributes #0 = { "split-stack" }20 21; CHECK: .section ".note.GNU-split-stack","",@progbits22; CHECK: .section ".note.GNU-no-split-stack","",@progbits23