• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -triple riscv32 -mattr=+c %s -g -o - -riscv-no-aliases \
2# RUN:   | FileCheck %s -check-prefixes=COMPRESS,BOTH
3# RUN: llvm-mc -triple riscv32 %s -g -o - -riscv-no-aliases \
4# RUN:   | FileCheck %s -check-prefixes=UNCOMPRESS,BOTH
5
6
7# This file ensures that compressing an instruction preserves its debug info.
8
9
10# BOTH-LABEL: .text
11
12# BOTH: .file 1
13# BOTH-SAME: "compress-debug-info.s"
14
15# BOTH:            .loc 1 [[# @LINE + 3 ]] 0
16# UNCOMPRESS-NEXT: addi a0, a1, 0
17# COMPRESS-NEXT:   c.mv a0, a1
18addi a0, a1, 0
19
20# BOTH-LABEL: .debug_info
21