diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-08-03 18:52:45 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-08-03 18:52:45 +0000 |
commit | 43e60ba8c328d4d8cce9c3d249c5ef3a30f7eee6 (patch) | |
tree | 163f010cf115313402c531eb6319598a935b97b1 /llvm | |
parent | fcb6123d05c6512f1f3ff08ad83695ad292953df (diff) | |
download | bcm5719-llvm-43e60ba8c328d4d8cce9c3d249c5ef3a30f7eee6.tar.gz bcm5719-llvm-43e60ba8c328d4d8cce9c3d249c5ef3a30f7eee6.zip |
[yaml2obj][tests] Replace 8-byte `od` conversion with 1-byte conversion
Summary:
`od` on AIX does not seem to implement 8-byte integer conversions. Work
around this by using 1-byte conversions, which can be used in this case
since the value is byte-order insensitive.
Reviewers: grimar, daltenty, xingxue, jasonliu, MaskRay
Reviewed By: grimar, MaskRay
Subscribers: MaskRay, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65671
llvm-svn: 367760
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/tools/yaml2obj/elf-override-shoffset.yaml | 8 | ||||
-rw-r--r-- | llvm/test/tools/yaml2obj/elf-override-shsize.yaml | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/tools/yaml2obj/elf-override-shoffset.yaml b/llvm/test/tools/yaml2obj/elf-override-shoffset.yaml index 3bde1778c30..21a172cebad 100644 --- a/llvm/test/tools/yaml2obj/elf-override-shoffset.yaml +++ b/llvm/test/tools/yaml2obj/elf-override-shoffset.yaml @@ -73,13 +73,13 @@ Sections: # RUN: yaml2obj --docnum=2 %s -o %t2 # RUN: yaml2obj --docnum=3 %s -o %t3 -# RUN: od -t x8 -v %t2 > %t.txt -# RUN: od -t x8 -v %t3 >> %t.txt +# RUN: od -t x1 -v %t2 > %t.txt +# RUN: od -t x1 -v %t3 >> %t.txt # RUN: FileCheck %s --input-file=%t.txt --check-prefix=CASE2 -# CASE2: [[OFFSET:.*]] fefefefefefefefe +# CASE2: [[OFFSET:.*]] fe fe fe fe fe fe fe fe # CASE2: [[FILESIZE:.*]]{{$}} -# CASE2: [[OFFSET]] fefefefefefefefe +# CASE2: [[OFFSET]] fe fe fe fe fe fe fe fe # CASE2: [[FILESIZE]]{{$}} --- !ELF diff --git a/llvm/test/tools/yaml2obj/elf-override-shsize.yaml b/llvm/test/tools/yaml2obj/elf-override-shsize.yaml index e57053bb747..987369892bb 100644 --- a/llvm/test/tools/yaml2obj/elf-override-shsize.yaml +++ b/llvm/test/tools/yaml2obj/elf-override-shsize.yaml @@ -72,13 +72,13 @@ Sections: # RUN: yaml2obj --docnum=2 %s -o %t2 # RUN: yaml2obj --docnum=3 %s -o %t3 -# RUN: od -t x8 -v %t2 > %t.txt -# RUN: od -t x8 -v %t3 >> %t.txt +# RUN: od -t x1 -v %t2 > %t.txt +# RUN: od -t x1 -v %t3 >> %t.txt # RUN: FileCheck %s --input-file=%t.txt --check-prefix=CASE2 -# CASE2: [[OFFSET:.*]] fefefefefefefefe +# CASE2: [[OFFSET:.*]] fe fe fe fe fe fe fe fe # CASE2: [[FILESIZE:.*]]{{$}} -# CASE2: [[OFFSET]] fefefefefefefefe +# CASE2: [[OFFSET]] fe fe fe fe fe fe fe fe # CASE2: [[FILESIZE]]{{$}} --- !ELF |