Skip to content

Commit 3492985

Browse files
authored
Fix llvm/test/DebugInfo/Generic/discriminated-union.ll on big-endian targets (#125849)
Fixes the failure of the [Solaris/sparcv9 buildbot](https://lab.llvm.org/buildbot/#/builders/13/builds/5103) caused by #125578. cc @rorth @tromey @dwblaikie
1 parent 9deafad commit 3492985

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/test/DebugInfo/Generic/discriminated-union.ll

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; RUN: %llc_dwarf -O0 -filetype=obj < %s > %t
2-
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
2+
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s --check-prefix %if target-byteorder-big-endian %{ CHECK-BE %} %else %{ CHECK-LE %}
33

44
; RUN: %llc_dwarf --try-experimental-debuginfo-iterators -O0 -filetype=obj < %s > %t
5-
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s
5+
; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s --check-prefix %if target-byteorder-big-endian %{ CHECK-BE %} %else %{ CHECK-LE %}
66

77
; Check for a variant part that has two members, one of which has a
88
; discriminant value.
@@ -22,7 +22,8 @@
2222
; CHECK: DW_AT_alignment
2323
; CHECK: DW_AT_data_member_location [DW_FORM_data1] (0x00)
2424
; CHECK: DW_TAG_variant
25-
; CHECK: DW_AT_discr_value [DW_FORM_block1] (<0x10> 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 )
25+
; CHECK-LE: DW_AT_discr_value [DW_FORM_block1] (<0x10> 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 )
26+
; CHECK-BE: DW_AT_discr_value [DW_FORM_block1] (<0x10> 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 )
2627
; CHECK: DW_TAG_member
2728
; CHECK: DW_AT_type
2829
; CHECK: DW_AT_alignment

0 commit comments

Comments
 (0)