mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	For PR1319:
Convert to use the new Tcl expr based test harness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
				
			|||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -constprop -instcombine -dce | llvm-dis | not grep 'REMOVE'
 | 
					; RUN: llvm-upgrade < %s | llvm-as | opt -cee -constprop -instcombine -dce | \
 | 
				
			||||||
 | 
					; RUN:   llvm-dis | not grep REMOVE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int %test1(int %A) {
 | 
					int %test1(int %A) {
 | 
				
			||||||
	%cond = seteq int %A, 40
 | 
						%cond = seteq int %A, 40
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,3 @@
 | 
				
			|||||||
load_lib llvm-dg.exp
 | 
					load_lib llvm.exp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
 | 
					RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,8 +12,9 @@
 | 
				
			|||||||
; Note that this is a "feature" test, not a correctness test.
 | 
					; Note that this is a "feature" test, not a correctness test.
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
; XFAIL: *
 | 
					; XFAIL: *
 | 
				
			||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -simplifycfg -disable-output &&
 | 
					; RUN: llvm-upgrade < %s | llvm-as | opt -cee -simplifycfg | llvm-dis | \
 | 
				
			||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -simplifycfg | llvm-dis | not grep cond213
 | 
					; RUN:   not grep cond213
 | 
				
			||||||
 | 
					; END.
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
implementation   ; Functions:
 | 
					implementation   ; Functions:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,8 +2,9 @@
 | 
				
			|||||||
; Any succeeding uses of the pointer should get this info
 | 
					; Any succeeding uses of the pointer should get this info
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
; XFAIL: *
 | 
					; XFAIL: *
 | 
				
			||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -instcombine -simplifycfg -disable-output &&
 | 
					; RUN: llvm-upgrade < %s | llvm-as | opt -cee -instcombine -simplifycfg | \
 | 
				
			||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -instcombine -simplifycfg | llvm-dis | not grep br
 | 
					; RUN:   llvm-dis | not grep br
 | 
				
			||||||
 | 
					; END.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
implementation   ; Functions:
 | 
					implementation   ; Functions:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,6 @@
 | 
				
			|||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -constprop -instcombine -dce | llvm-dis | not grep 'REMOVE'
 | 
					; RUN: llvm-upgrade < %s | llvm-as | opt -cee -constprop -instcombine -dce | \
 | 
				
			||||||
 | 
					; RUN:   llvm-dis | not grep REMOVE
 | 
				
			||||||
 | 
					; END.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int %test_case_values_should_propagate(int %A) {
 | 
					int %test_case_values_should_propagate(int %A) {
 | 
				
			||||||
    switch int %A, label %D [
 | 
					    switch int %A, label %D [
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,8 @@
 | 
				
			|||||||
;
 | 
					;
 | 
				
			||||||
; This should eliminate all BB's except BB0, BB9, BB10
 | 
					; This should eliminate all BB's except BB0, BB9, BB10
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -cee -instcombine -simplifycfg | llvm-dis | not grep 'bb[2-8]'
 | 
					; RUN: llvm-upgrade < %s | llvm-as | opt -cee -instcombine -simplifycfg | \
 | 
				
			||||||
 | 
					; RUN:   llvm-dis | not grep {bb\[2-8\]}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
implementation   ; Functions:
 | 
					implementation   ; Functions:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user