1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/MC/AsmParser/round-trip.s
Scott Linder 9ea73ce446 [MC] Consume EndOfStatement in .cfi_{sections,endproc}
Previously these directives were always interpreted as having an extra
blank line after them.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D92612
2020-12-04 22:30:29 +00:00

16 lines
595 B
ArmAsm

# RUN: llvm-mc -preserve-comments -triple i386-unknown-unknown %s >%t-1.s
# RUN: llvm-mc -preserve-comments -triple i386-unknown-unknown %t-1.s >%t-2.s
# RUN: diff %t-1.s %t-2.s
# Test that various assembly round-trips when run through MC; the first
# transition from hand-written to "canonical" output may introduce some small
# differences, so we don't include the initial input in the comparison.
.text
# Some of these CFI instructions didn't consume the end of statement
# consistently, which led to extra empty lines in the output.
.cfi_sections .debug_frame
.cfi_startproc
.cfi_endproc