1; If the binary looks up libraries using an rpath, we can't test this 2; without copying the whole lib dir or polluting the build dir. 3; REQUIRES: static-libs 4; REQUIRES: aarch64-registered-target 5 6; The above also applies if the binary is built with libc++. 7; UNSUPPORTED: libcxx-used 8 9; RUN: echo > %t.input 10 11; workaround for https://openradar.appspot.com/FB8914243 12; RUN: rm -f %t.bin--aarch64 13; RUN: rm -f %t.bin--aarch64-O1 14; RUN: rm -f %t.bin--O3-aarch64 15 16; RUN: cp llvm-isel-fuzzer %t.bin--aarch64 17; RUN: %t.bin--aarch64 %t.input 2>&1 | FileCheck -check-prefix=AARCH64 %s 18; AARCH64: Injected args: -mtriple=aarch64 19 20; RUN: cp llvm-isel-fuzzer %t.bin--aarch64-O1 21; RUN: %t.bin--aarch64-O1 %t.input 2>&1 | FileCheck -check-prefix=OPT-AFTER %s 22; OPT-AFTER: Injected args: -mtriple=aarch64 -O1 23 24; RUN: cp llvm-isel-fuzzer %t.bin--O3-aarch64 25; RUN: %t.bin--O3-aarch64 %t.input 2>&1 | FileCheck -check-prefix=OPT-BEFORE %s 26; OPT-BEFORE: Injected args: -O3 -mtriple=aarch64 27