[llvm] cd9c915 - [Object][RISCV][test] Improve DebugInfo/RISCV/relax-debug-frame.ll

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 09:18:29 PST 2019


Author: Fangrui Song
Date: 2019-11-26T09:16:55-08:00
New Revision: cd9c915d2ac0e6660593c76c63827a4f4d3257d4

URL: https://github.com/llvm/llvm-project/commit/cd9c915d2ac0e6660593c76c63827a4f4d3257d4
DIFF: https://github.com/llvm/llvm-project/commit/cd9c915d2ac0e6660593c76c63827a4f4d3257d4.diff

LOG: [Object][RISCV][test] Improve DebugInfo/RISCV/relax-debug-frame.ll

Reviewed By: luismarques

Differential Revision: https://reviews.llvm.org/D70578

Added: 
    

Modified: 
    llvm/test/DebugInfo/RISCV/relax-debug-frame.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll b/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll
index 24ba037762a9..4a767aaf6235 100644
--- a/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll
+++ b/llvm/test/DebugInfo/RISCV/relax-debug-frame.ll
@@ -1,19 +1,15 @@
-; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+relax %s -o - \
-; RUN:     | llvm-readobj -r | FileCheck -check-prefix=RELAX %s
-; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+relax %s -o - \
-; RUN:     | llvm-dwarfdump --debug-frame - 2>&1 \
+; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+relax %s -o %t.o
+; RUN: llvm-readobj -r %t.o | FileCheck -check-prefix=RELAX %s
+; RUN: llvm-dwarfdump --debug-frame %t.o 2>&1 \
 ; RUN:     | FileCheck -check-prefix=RELAX-DWARFDUMP %s
 ;
-; RELAX: Section{{.*}}.rela.{{eh|debug}}_frame {
-; RELAX-NOT: {{[}]}}
-; RELAX-NOT: 0x0 R_RISCV_ADD32
-; RELAX-NOT: 0x0 R_RISCV_SUB32
-; RELAX-NOT: {{[}]}}
-; RELAX: 0x20 R_RISCV_ADD32
-; RELAX: 0x20 R_RISCV_SUB32
-; RELAX-NOT: {{[}]}}
-; RELAX: 0x39 R_RISCV_SET6
-; RELAX: 0x39 R_RISCV_SUB6
+; RELAX:      Section ({{.*}}) .rela.eh_frame {
+; RELAX-NEXT:   0x1C R_RISCV_32_PCREL - 0x0
+; RELAX-NEXT:   0x20 R_RISCV_ADD32 - 0x0
+; RELAX-NEXT:   0x20 R_RISCV_SUB32 - 0x0
+; RELAX-NOT:  }
+; RELAX:        0x39 R_RISCV_SET6 - 0x0
+; RELAX-NEXT:   0x39 R_RISCV_SUB6 - 0x0
 ;
 ; RELAX-DWARFDUMP-NOT: error: failed to compute relocation
 ; RELAX-DWARFDUMP: CIE


        


More information about the llvm-commits mailing list