Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / VE / data-reloc-error.s
blobe312ac4e02d1aa8c7d279ede639db806b386e5cd
1 # RUN: not llvm-mc -filetype=obj -triple=ve %s -o /dev/null 2>&1 | \
2 # RUN: FileCheck %s
3 # RUN: not llvm-mc -filetype=obj -triple=ve -position-independent %s \
4 # RUN: -o /dev/null 2>&1 | FileCheck %s
6 .data
7 a:
8 ## An undefined reference of _GLOBAL_OFFSET_TABLE_ causes .got[0] to be
9 ## allocated to store _DYNAMIC.
10 .byte _GLOBAL_OFFSET_TABLE_
11 .byte _GLOBAL_OFFSET_TABLE_ - .
12 .2byte _GLOBAL_OFFSET_TABLE_
13 .2byte _GLOBAL_OFFSET_TABLE_ - .
14 .8byte _GLOBAL_OFFSET_TABLE_ - .
16 # CHECK: data-reloc-error.s:10:7: error: 1-byte data relocation is not supported
17 # CHECK-NEXT: .byte _GLOBAL_OFFSET_TABLE_
18 # CHECK: data-reloc-error.s:11:7: error: 1-byte pc-relative data relocation is not supported
19 # CHECK-NEXT: .byte _GLOBAL_OFFSET_TABLE_ - .
20 # CHECK: data-reloc-error.s:12:8: error: 2-byte data relocation is not supported
21 # CHECK-NEXT: .2byte _GLOBAL_OFFSET_TABLE_
22 # CHECK: data-reloc-error.s:13:8: error: 2-byte pc-relative data relocation is not supported
23 # CHECK-NEXT: .2byte _GLOBAL_OFFSET_TABLE_ - .
24 # CHECK: data-reloc-error.s:14:8: error: 8-byte pc-relative data relocation is not supported
25 # CHECK-NEXT: .8byte _GLOBAL_OFFSET_TABLE_ - .