llvm-isel-fuzzer: Add some basic tests

llvm-svn: 312427
This commit is contained in:
Justin Bogner 2017-09-03 00:37:39 +00:00
parent 4c12c7827e
commit 5de2f817b3
6 changed files with 29 additions and 0 deletions

View File

@ -294,6 +294,7 @@ for pattern in [r"\bbugpoint\b(?!-)",
r"\bllvm-dsymutil\b",
r"\bllvm-dwarfdump\b",
r"\bllvm-extract\b",
r"\bllvm-isel-fuzzer\b",
r"\bllvm-lib\b",
r"\bllvm-link\b",
r"\bllvm-lto\b",

View File

@ -0,0 +1,6 @@
; REQUIRES: aarch64-registered-target
; RUN: opt -o %t %s
; RUN: llvm-isel-fuzzer %t -ignore_remaining_args=1 -mtriple aarch64 2>&1 | FileCheck %s
; CHECK: Running

View File

@ -0,0 +1,6 @@
; REQUIRES: aarch64-registered-target
; RUN: echo > %t
; RUN: llvm-isel-fuzzer %t -ignore_remaining_args=1 -mtriple aarch64 2>&1 | FileCheck %s
; CHECK: Running

View File

@ -0,0 +1,4 @@
; RUN: opt -o %t %s
; RUN: not llvm-isel-fuzzer %t 2>&1 | FileCheck %s
; CHECK: -mtriple must be specified

View File

@ -0,0 +1,6 @@
; REQUIRES: x86-registered-target
; RUN: opt -o %t %s
; RUN: llvm-isel-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 2>&1 | FileCheck %s
; CHECK: Running

View File

@ -0,0 +1,6 @@
; REQUIRES: x86-registered-target
; RUN: echo > %t
; RUN: llvm-isel-fuzzer %t -ignore_remaining_args=1 -mtriple x86_64 2>&1 | FileCheck %s
; CHECK: Running