brintos

brintos / llvm-project-archived public Read only

0
0
Text · 622 B · a6b7b88 Raw
20 lines · plain
1## Show that when "CODE" is used with an address, it forces the found location2## to be symbolized as a function (this is the default).3# REQUIRES: x86-registered-target4# RUN: llvm-mc -g -filetype=obj -triple=x86_64-pc-linux %s -o %t.o5# RUN: llvm-symbolizer "CODE 0x1" "CODE 0x2" --obj=%t.o > %t.code6# RUN: llvm-symbolizer 0x1 0x2 --obj=%t.o > %t.default7# RUN: cmp %t.code %t.default8# RUN: FileCheck %s --input-file=%t.code -DFILE=%s --implicit-check-not={{.}}9 10# CHECK:      f111f1:12    nop13# CHECK-NEXT: [[FILE]]:[[@LINE+1]]:014    ret15# CHECK-EMPTY:16# CHECK-NEXT: f217f2:18# CHECK-NEXT: [[FILE]]:[[@LINE+1]]:019    ret20