2017-10-13 02:10:22 +08:00
|
|
|
; If the binary looks up libraries using an rpath, we can't test this
|
|
|
|
; without copying the whole lib dir or polluting the build dir.
|
2017-10-13 08:17:54 +08:00
|
|
|
; REQUIRES: static-libs
|
2017-10-12 12:35:32 +08:00
|
|
|
; REQUIRES: aarch64-registered-target
|
|
|
|
|
|
|
|
; RUN: echo > %t.input
|
|
|
|
|
2017-10-13 08:18:32 +08:00
|
|
|
; RUN: cp llvm-isel-fuzzer %t.bin--aarch64
|
|
|
|
; RUN: %t.bin--aarch64 %t.input 2>&1 | FileCheck -check-prefix=AARCH64 %s
|
2017-10-12 12:35:32 +08:00
|
|
|
; AARCH64: Injected args: -mtriple=aarch64
|
|
|
|
|
2017-10-13 08:18:32 +08:00
|
|
|
; RUN: cp llvm-isel-fuzzer %t.bin--aarch64-O1
|
|
|
|
; RUN: %t.bin--aarch64-O1 %t.input 2>&1 | FileCheck -check-prefix=OPT-AFTER %s
|
2017-10-12 12:35:32 +08:00
|
|
|
; OPT-AFTER: Injected args: -mtriple=aarch64 -O1
|
|
|
|
|
2017-10-13 08:18:32 +08:00
|
|
|
; RUN: cp llvm-isel-fuzzer %t.bin--O3-aarch64
|
|
|
|
; RUN: %t.bin--O3-aarch64 %t.input 2>&1 | FileCheck -check-prefix=OPT-BEFORE %s
|
2017-10-12 12:35:32 +08:00
|
|
|
; OPT-BEFORE: Injected args: -O3 -mtriple=aarch64
|