[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / section-linkorder-error.s
blobad637b9220a43e6bfd551ad87a99979eb301c2f6
1 # RUN: not llvm-mc -triple x86_64 %s -o /dev/null 2>&1 | FileCheck %s
3 # CHECK: {{.*}}.s:[[# @LINE+1]]:30: error: expected linked-to symbol
4 .section .link,"ao",@progbits
6 # CHECK: {{.*}}.s:[[# @LINE+1]]:31: error: invalid linked-to symbol
7 .section .link,"ao",@progbits,123
9 # CHECK: {{.*}}.s:[[# @LINE+1]]:31: error: linked-to symbol is not in a section: foo
10 .section .link,"ao",@progbits,foo
12 # CHECK: {{.*}}.s:[[# @LINE+2]]:31: error: linked-to symbol is not in a section: bar
13 bar = 42
14 .section .link,"ao",@progbits,bar
16 # CHECK: {{.*}}.s:[[# @LINE+2]]:31: error: linked-to symbol is not in a section: baz
17 .quad baz
18 .section .link,"ao",@progbits,baz