brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · c8c5256 Raw
75 lines · plain
1// This test checks error reporting for missing ending/starting of prologues/epilogues2 3// RUN: not llvm-mc -triple thumbv7-pc-win32 -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s4 5// CHECK: error: Stray .seh_endepilogue in func16// CHECK: error: Prologue in func2 not correctly terminated7// CHECK: error: Epilogue in func3 not correctly terminated8// CHECK: error: Epilogue in func4 not correctly terminated9 10        .text11        .syntax unified12 13        .seh_proc func114func1:15        sub sp, #1616        .seh_stackalloc 1617        .seh_endprologue18        nop19        // Missing .seh_startepilogue20        add sp, #1621        .seh_stackalloc 1622        bx lr23        .seh_nop24        .seh_endepilogue25        .seh_endproc26 27        .seh_proc func228func2:29        sub sp, #1630        .seh_stackalloc 1631        // Missing .seh_endprologue32        nop33        .seh_startepilogue34        add sp, #1635        .seh_stackalloc 1636        bx lr37        .seh_nop38        .seh_endepilogue39        .seh_endproc40 41        .seh_proc func342func3:43        sub sp, #1644        .seh_stackalloc 1645        .seh_endprologue46        nop47        .seh_startepilogue48        add sp, #1649        .seh_stackalloc 1650        bx lr51        .seh_nop52        // Missing .seh_endepilogue53        .seh_endproc54 55        .seh_proc func456func4:57        sub sp, #1658        .seh_stackalloc 1659        .seh_endprologue60        nop61        .seh_startepilogue62        add sp, #1663        .seh_stackalloc 1664        bx lr65        .seh_nop66        // Missing .seh_endepilogue67        nop68        .seh_startepilogue69        add sp, #1670        .seh_stackalloc 1671        bx lr72        .seh_nop73        .seh_endepilogue74        .seh_endproc75