mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Checkin testcases for bugpoint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
21049cf266
commit
d9624b04a1
17
test/BugPoint/Makefile
Normal file
17
test/BugPoint/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
# test/Regression/Assembler/Makefile
|
||||
#
|
||||
# This directory contains regression tests for the LLVM assembler program.
|
||||
# These LLVM source file tests are just required to assembler properly to pass.
|
||||
#
|
||||
LEVEL = ../../..
|
||||
include $(LEVEL)/test/Makefile.tests
|
||||
|
||||
TESTS := $(wildcard *.ll)
|
||||
|
||||
all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
|
||||
|
||||
Output/%.ll.out: %.ll Output/.dir $(LAS) $(LBUGPOINT)
|
||||
-$(TESTRUNR) $<
|
||||
|
||||
clean::
|
||||
rm -f *.bc
|
7
test/BugPoint/crash-basictest.ll
Normal file
7
test/BugPoint/crash-basictest.ll
Normal file
@ -0,0 +1,7 @@
|
||||
; Basic test for bugpoint.
|
||||
; RUN: bugpoint %s -domset -idom -domset -bugpoint-crashcalls -domset -idom -domset
|
||||
|
||||
int %test() {
|
||||
call int %test()
|
||||
ret int %0
|
||||
}
|
13
test/BugPoint/crash-narrowfunctiontest.ll
Normal file
13
test/BugPoint/crash-narrowfunctiontest.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; Test that bugpoint can narrow down the testcase to the important function
|
||||
;
|
||||
; RUN: bugpoint %s -bugpoint-crashcalls
|
||||
|
||||
int %foo() { ret int 1 }
|
||||
|
||||
int %test() {
|
||||
call int %test()
|
||||
ret int %0
|
||||
}
|
||||
|
||||
int %bar() { ret int 2 }
|
||||
|
Loading…
Reference in New Issue
Block a user