mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
25a0241f66
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
22 lines
679 B
ArmAsm
22 lines
679 B
ArmAsm
# RUN: llvm-mc %s -triple x86_64-linux-gnu -filetype=obj -o - | llvm-objdump -d - | FileCheck %s
|
|
# RUN: llvm-mc %s -triple x86_64-windows-msvc -filetype=obj -o - | llvm-objdump -d - | FileCheck %s
|
|
# RUN: llvm-mc %s -triple x86_64-apple-macos -filetype=obj -o - | llvm-objdump -d - | FileCheck %s
|
|
|
|
.text
|
|
.global foo
|
|
foo:
|
|
.code64
|
|
movl (%eax), %eax
|
|
.code32
|
|
movl (%eax), %eax
|
|
.code16
|
|
movl (%eax), %eax
|
|
.code64
|
|
retq
|
|
|
|
# CHECK: <foo>:
|
|
# CHECK-NEXT: 67 8b 00 movl (%eax), %eax
|
|
# CHECK-NEXT: 8b 00 movl (%rax), %eax
|
|
# CHECK-NEXT: 67 66 8b 00 movw (%eax), %ax
|
|
# CHECK-NEXT: c3 retq
|