Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/cfi-escape.mir
Scott Linder 4d81aec40c [MIR] Fix CFI_INSTRUCTION escape printing
Summary:
The printer seems to intend to not print the trailing comma but has a
copy-paste error for the last value in the escape, and the parser
enforces having no trailing comma, but somehow a test was never included
to actually confirm it.

Reviewers: thegameg, arsenm

Reviewed By: thegameg, arsenm

Subscribers: wdng, arsenm, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82478
2020-06-24 18:15:28 -04:00

12 lines
354 B
YAML

# RUN: llc -run-pass none -o - %s | llc -x=mir -run-pass none -o - | FileCheck %s
# Check that we don't print a trailing comma for CFI escape indices, and that
# in general we can round trip them.
name: func
# CHECK-LABEL: name: func
body: |
bb.0:
CFI_INSTRUCTION escape 0x61, 0x62, 0x63
; CHECK: CFI_INSTRUCTION escape 0x61, 0x62, 0x63{{$}}