You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
553 B
21 lines
553 B
# RUN: llvm-mc -triple riscv32 -mattr=+c %s -g -o - -riscv-no-aliases \
|
|
# RUN: | FileCheck %s -check-prefixes=COMPRESS,BOTH
|
|
# RUN: llvm-mc -triple riscv32 %s -g -o - -riscv-no-aliases \
|
|
# RUN: | FileCheck %s -check-prefixes=UNCOMPRESS,BOTH
|
|
|
|
|
|
# This file ensures that compressing an instruction preserves its debug info.
|
|
|
|
|
|
# BOTH-LABEL: .text
|
|
|
|
# BOTH: .file 1
|
|
# BOTH-SAME: "compress-debug-info.s"
|
|
|
|
# BOTH: .loc 1 [[# @LINE + 3 ]] 0
|
|
# UNCOMPRESS-NEXT: addi a0, a1, 0
|
|
# COMPRESS-NEXT: c.mv a0, a1
|
|
addi a0, a1, 0
|
|
|
|
# BOTH-LABEL: .debug_info
|