[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / nobits-non-zero-value.s
blob16d386dc62ad5492542b566cb65740c54eff3151
1 # RUN: not llvm-mc -filetype=obj -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s
3 ## -filetype=asm does not check the error.
4 # RUN: llvm-mc -triple=x86_64 %s
6 .section .tbss,"aw",@nobits
7 # MCRelaxableFragment
8 # CHECK: {{.*}}.s:[[#@LINE+1]]:3: error: SHT_NOBITS section '.tbss' cannot have instructions
9 jmp foo
11 .bss
12 # CHECK: {{.*}}.s:[[#@LINE+1]]:3: error: SHT_NOBITS section '.bss' cannot have instructions
13 addb %al,(%rax)
15 # CHECK: <unknown>:0: error: SHT_NOBITS section '.bss' cannot have non-zero initializers
16 .long 1