[llvm] r312427 - llvm-isel-fuzzer: Add some basic tests

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 3 00:56:46 PDT 2017


Hal Finkel <hfinkel at anl.gov> writes:
> Hi, Justin,
>
> I believe that you need to add llvm-isel-fuzzer to the
> LLVM_TEST_DEPENDS list in test/CMakeLists.txt as well. Otherwise, the
> 'check-llvm' target won't necessarily build the binary.  I added this
> in r312433.

Oops, didn't realize that. Thanks for fixing it!

>  -Hal
>
> On 09/02/2017 07:37 PM, Justin Bogner via llvm-commits wrote:
>> Author: bogner
>> Date: Sat Sep  2 17:37:39 2017
>> New Revision: 312427
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=312427&view=rev
>> Log:
>> llvm-isel-fuzzer: Add some basic tests
>>
>> Added:
>>      llvm/trunk/test/tools/llvm-isel-fuzzer/
>>      llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty-bc.ll
>>      llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty.ll
>>      llvm/trunk/test/tools/llvm-isel-fuzzer/missing-triple.ll
>>      llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty-bc.ll
>>      llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty.ll
>> Modified:
>>      llvm/trunk/test/lit.cfg
>>
>> Modified: llvm/trunk/test/lit.cfg
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=312427&r1=312426&r2=312427&view=diff
>> ==============================================================================
>> --- llvm/trunk/test/lit.cfg (original)
>> +++ llvm/trunk/test/lit.cfg Sat Sep  2 17:37:39 2017
>> @@ -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",
>>
>> Added: llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty-bc.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty-bc.ll?rev=312427&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty-bc.ll (added)
>> +++ llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty-bc.ll Sat Sep  2 17:37:39 2017
>> @@ -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
>>
>> Added: llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty.ll?rev=312427&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty.ll (added)
>> +++ llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-empty.ll Sat Sep  2 17:37:39 2017
>> @@ -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
>>
>> Added: llvm/trunk/test/tools/llvm-isel-fuzzer/missing-triple.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/missing-triple.ll?rev=312427&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/tools/llvm-isel-fuzzer/missing-triple.ll (added)
>> +++ llvm/trunk/test/tools/llvm-isel-fuzzer/missing-triple.ll Sat Sep  2 17:37:39 2017
>> @@ -0,0 +1,4 @@
>> +; RUN: opt -o %t %s
>> +; RUN: not llvm-isel-fuzzer %t 2>&1 | FileCheck %s
>> +
>> +; CHECK: -mtriple must be specified
>>
>> Added: llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty-bc.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty-bc.ll?rev=312427&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty-bc.ll (added)
>> +++ llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty-bc.ll Sat Sep  2 17:37:39 2017
>> @@ -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
>>
>> Added: llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty.ll
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty.ll?rev=312427&view=auto
>> ==============================================================================
>> --- llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty.ll (added)
>> +++ llvm/trunk/test/tools/llvm-isel-fuzzer/x86-empty.ll Sat Sep  2 17:37:39 2017
>> @@ -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
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list