
The new behavior matches GNU objdump. A pair of angle brackets makes tests slightly easier. `.foo:` is not unique and thus cannot be used in a `CHECK-LABEL:` directive. Without `-LABEL`, the CHECK line can match the `Disassembly of section` line and causes the next `CHECK-NEXT:` to fail. ``` Disassembly of section .foo: 0000000000001634 .foo: ``` Bdragon: <> has metalinguistic connotation. it just "feels right" Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D75713
12 lines
235 B
Plaintext
12 lines
235 B
Plaintext
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o -| \
|
|
# RUN: llvm-objdump -d - | FileCheck %s
|
|
|
|
.globl foo
|
|
.type foo, @object
|
|
foo:
|
|
.ascii "this is a test"
|
|
|
|
# CHECK: <foo>:
|
|
# CHECK: 0:{{.*}}this is
|
|
# CHECK: 8:{{.*}}a test
|