================ @@ -0,0 +1,18 @@ +# REQUIRES: zstd +# RUN: yaml2obj %s | not obj2yaml 2>&1 | FileCheck %s + +!Offload +Compression: zstd +EntriesOffset: 48 +Members: + - ImageKind: IMG_Cubin + OffloadKind: OFK_HIP + Flags: 0 + String: + - Key: "triple" + Value: "amdgcn-amd-amdhsa" + - Key: "arch" + Value: "gfx90a" + Content: "deadbeef" + +# CHECK: Error reading file: <stdin>: The end of the file was unexpectedly encountered ---------------- yxsamliu wrote:
This test currently fails with `unknown compression format`, so it does not reach the new `EntriesOffset` validation. Could we test `OffloadBinary::create` directly, or validate the offset before inspecting the payload? https://github.com/llvm/llvm-project/pull/222774 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
