1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/tools/llvm-symbolizer/data.s
James Henderson 9dab5030f6 [llvm-symbolizer][test] Add explicit tests for CODE and DATA
These directives force the associated address to be interpreted as a
function or data respectively. CODE is the default when not specified.

Differential Revision: https://reviews.llvm.org/D96712

Reviewed by: MaskRay
2021-02-16 10:59:25 +00:00

21 lines
503 B
ArmAsm

## Show that when "DATA" is used with an address, it forces the found location
## to be symbolized as data.
# REQUIRES: x86-registered-target
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: llvm-symbolizer "DATA 0x2" "DATA 0x8" --obj=%t.o | \
# RUN: FileCheck %s -DFILE=%s --implicit-check-not={{.}}
# CHECK: d1
# CHECK-NEXT: 0 8
# CHECK-EMPTY:
# CHECK-NEXT: d2
# CHECK-NEXT: 8 4
d1:
.quad 0x1122334455667788
.size d1, 8
d2:
.long 0x99aabbcc
.size d2, 4