Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / CodeGen / Mips / mips-shf-gprel.s
blob9caaf00394a3f59ea321eccd76bb176cda077cda
1 # Check that .sdata and .sbss sections have SHF_MIPS_GPREL flags
2 # and proper section types.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \
5 # RUN: | llvm-readobj -s | FileCheck %s
7 .sdata
8 .word 0
10 .sbss
11 .zero 4
13 # CHECK: Name: .sdata
14 # CHECK-NEXT: Type: SHT_PROGBITS
15 # CHECK-NEXT: Flags [ (0x10000003)
16 # CHECK-NEXT: SHF_ALLOC
17 # CHECK-NEXT: SHF_MIPS_GPREL
18 # CHECK-NEXT: SHF_WRITE
19 # CHECK-NEXT: ]
21 # CHECK: Name: .sbss
22 # CHECK-NEXT: Type: SHT_NOBITS
23 # CHECK-NEXT: Flags [ (0x10000003)
24 # CHECK-NEXT: SHF_ALLOC
25 # CHECK-NEXT: SHF_MIPS_GPREL
26 # CHECK-NEXT: SHF_WRITE
27 # CHECK-NEXT: ]