Joseph Huber d09d63a7d5
[Offload] Let binary utility take empty arguments (#162317)
Summary:
There's no real reason to restrict people if they don't want to use
`triple`. It's important for the normal pipeline but I can see people
using these for other purposes.
2025-10-07 12:51:00 -05:00

15 lines
507 B
LLVM

; RUN: llvm-offload-binary -o %t --image=file=%s,arch=abc,triple=x-y-z
; RUN: llvm-objdump --offloading %t | FileCheck %s
; RUN: llvm-offload-binary %t --image=file=%t2,arch=abc,triple=x-y-z
; RUN: diff %s %t2
; CHECK: OFFLOADING IMAGE [0]:
; CHECK-NEXT: kind <none>
; CHECK-NEXT: arch abc
; CHECK-NEXT: triple x-y-z
; CHECK-NEXT: producer none
; RUN: llvm-offload-binary -o %t3 --image=file=%s
; RUN: llvm-offload-binary %t3 --image=file=%t4
; RUN: diff %s %t4