[llvm] 7716681 - Fixed bot failure after d20bf5a7258d4b6a7

Sourabh Singh Tomar via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 05:36:34 PDT 2020


Author: Alok Kumar Sharma
Date: 2020-05-28T18:01:38+05:30
New Revision: 7716681cfd0ea2dadbddae6f1983e130c2fa4247

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

LOG: Fixed bot failure after d20bf5a7258d4b6a7

There was a failure on windows bit due to format mismatch on
different(Hex and Decimal) platforms even if meaning of output is same.

For example on X86 linux =>
DW_OP_plus_uconst 0x70, DW_OP_deref, DW_OP_lit4, DW_OP_mul
              ^
on X86 Windows-gnu =>
DW_AT_location (DW_OP_fbreg +112, DW_OP_deref, DW_OP_lit4, DW_OP_mul)

: error: CHECK-SAME: expected string not found in input
; CHECK-SAME: DW_OP_plus_uconst 0x70, DW_OP_deref, DW_OP_lit4, DW_OP_mul
              ^
<stdin>:28:17: note: scanning from here
 DW_AT_location (DW_OP_fbreg +112, DW_OP_deref, DW_OP_lit4, DW_OP_mul)
                ^
<stdin>:28:18: note: possible intended match here
 DW_AT_location (DW_OP_fbreg +112, DW_OP_deref, DW_OP_lit4, DW_OP_mul)

Now the test is limited to x86 using REQUIRED and -mtriple.

http://45.33.8.238/win/16214/step_11.txt

Added: 
    

Modified: 
    llvm/test/DebugInfo/fortranSubrangeVar.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/fortranSubrangeVar.ll b/llvm/test/DebugInfo/fortranSubrangeVar.ll
index 5ee283e4b21e..5cc5f6075ff6 100644
--- a/llvm/test/DebugInfo/fortranSubrangeVar.ll
+++ b/llvm/test/DebugInfo/fortranSubrangeVar.ll
@@ -1,6 +1,7 @@
 ;; This test checks DISubrange bounds for DIVariable
+; REQUIRES: x86_64-linux
 
-; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
 
 ;; Test whether bounds are generated correctly.
 ; CHECK: [[DIE1:0x.+]]:       DW_TAG_variable


        


More information about the llvm-commits mailing list