Skip to content

Commit f5ca0bc

Browse files
authored
[objdump] Fix dxcontainer tests on big endian host (#163427)
This fixes a build regression on big endian systems introduced in #159999.
1 parent 227bc57 commit f5ca0bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/test/tools/llvm-objcopy/DXContainer/dump-section.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
## Dump the PSV0 part and verify its size.
1212
# RUN: llvm-objcopy --dump-section=PSV0=%t.psv0 %t.dxbc
1313
# RUN: wc -c %t.psv0 | FileCheck %s --check-prefix=PSV0-SIZE
14-
# RUN: od -h %t.psv0 | FileCheck %s --check-prefix=PSV0-CONTENTS
14+
# RUN: od -v -Ax -t x1 %t.psv0 | FileCheck %s --check-prefix=PSV0-CONTENTS
1515
# PSV0-SIZE: 76
1616

1717
# For a compute shader the structure size is encoded followed by a bunch of 00'd
@@ -20,8 +20,8 @@
2020
# TODO: Update this test to use objdump or obj2yaml once we support
2121
# --add-section in objcopy. See issue:
2222
# https://github.com/llvm/llvm-project/issues/162159.
23-
# PSV0-CONTENTS: 0000000 0034 0000 0000 0000 0000 0000 0000 0000
24-
# PSV0-CONTENTS: 0000020 0000 0000 0000 0000 ffff ffff 0005 0000
23+
# PSV0-CONTENTS: 0000000 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
24+
# PSV0-CONTENTS: 0000010 00 00 00 00 00 00 00 00 ff ff ff ff 05 00 00 00
2525

2626
--- !dxcontainer
2727
Header:

0 commit comments

Comments
 (0)