Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git] / llvm / test / MC / ELF / nobits-non-zero-value.s
blob9b2bea6278e69557c0ea012d95eaeb1cbaa30a5a
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: {{.*}}.s:[[#@LINE+1]]:11: warning: ignoring non-zero fill value in SHT_NOBITS section '.bss'
16 .align 4, 42
18 # CHECK-NOT: {{.*}}.s:[[#@LINE+1]]:11: warning: ignoring non-zero fill value in SHT_NOBITS section '.bss'
19 .align 4, 0
21 # CHECK: <unknown>:0: error: SHT_NOBITS section '.bss' cannot have non-zero initializers
22 .long 1