16e4dc6f2SAlexander Shaposhnikov# RUN: echo abcd > %t.txt 26e4dc6f2SAlexander Shaposhnikov 36e4dc6f2SAlexander Shaposhnikov# Preserve input to verify it is not modified 46e4dc6f2SAlexander Shaposhnikov# RUN: cp %t.txt %t-copy.txt 56e4dc6f2SAlexander Shaposhnikov 66e4dc6f2SAlexander Shaposhnikov# -F <target> is equivalent to -I <target> -O <target> 7*f2bbfa05SFangrui Song# RUN: llvm-objcopy -F binary %t.txt %t.2.txt 86e4dc6f2SAlexander Shaposhnikov# RUN: cmp %t-copy.txt %t.2.txt 96e4dc6f2SAlexander Shaposhnikov 106e4dc6f2SAlexander Shaposhnikov# --target <target> is equivalent to --input-target <target> --output-target <target> 11*f2bbfa05SFangrui Song# RUN: llvm-objcopy --target binary %t.txt %t.3.txt 126e4dc6f2SAlexander Shaposhnikov# RUN: cmp %t-copy.txt %t.3.txt 136e4dc6f2SAlexander Shaposhnikov 146e4dc6f2SAlexander Shaposhnikov# --target is incompatibile with --input-target/--output-target 15*f2bbfa05SFangrui Song# RUN: not llvm-objcopy --target binary --input-target binary \ 166e4dc6f2SAlexander Shaposhnikov# RUN: %t.txt %t.4.txt 2>&1 \ 176e4dc6f2SAlexander Shaposhnikov# RUN: | FileCheck %s --check-prefix=BAD-FLAG 18*f2bbfa05SFangrui Song# RUN: not llvm-objcopy --target binary --output-target binary \ 196e4dc6f2SAlexander Shaposhnikov# RUN: %t.txt %t.4.txt 2>&1 \ 206e4dc6f2SAlexander Shaposhnikov# RUN: | FileCheck %s --check-prefix=BAD-FLAG 216e4dc6f2SAlexander Shaposhnikov 22ad29d291SJordan Rupprecht# BAD-FLAG: --target cannot be used with --input-target or --output-target 23