Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / COFF / cv-fpo-errors.s
blob5f8c9f0b6fdde6cfedb06ab36556917698a8ae9f
1 # RUN: not llvm-mc < %s -triple i686-windows-msvc -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
3 .globl _foo
4 _foo:
5 .cv_fpo_proc
6 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: expected symbol name
7 .cv_fpo_proc 1
8 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: expected symbol name
9 .cv_fpo_proc _foo extra
10 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: expected parameter byte count
11 .cv_fpo_proc _foo 4 extra
12 # CHECK: :[[#@LINE-1]]:22: error: expected newline
13 .cv_fpo_proc _foo 4
15 pushl %ebp
16 .cv_fpo_pushreg 1
17 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: invalid register name
18 .cv_fpo_pushreg ebp
20 subl $20, %esp
21 .cv_fpo_stackalloc asdf
22 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: expected offset
23 .cv_fpo_stackalloc 20 asdf
24 # CHECK: :[[#@LINE-1]]:24: error: expected newline
25 .cv_fpo_stackalloc 20
26 .cv_fpo_endprologue asdf
27 # CHECK: :[[#@LINE-1]]:22: error: expected newline
28 .cv_fpo_endprologue
30 addl $20, %esp
31 popl %ebp
32 retl
33 .cv_fpo_endproc asdf
34 # CHECK: :[[#@LINE-1]]:18: error: expected newline
35 .cv_fpo_endproc
37 .section .debug$S,"dr"
38 .p2align 2
39 .long 4 # Debug section magic
40 .cv_fpo_data
41 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: expected symbol name
42 .cv_fpo_data 1
43 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: expected symbol name
44 .cv_fpo_data _foo asdf
45 # CHECK: :[[#@LINE-1]]:{{[0-9]+}}: error: expected newline
46 .cv_fpo_data _foo
47 .long 0