mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 00:16:48 +00:00 
			
		
		
		
	llvm upgrade doesn't accept 'define'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -1,5 +1,6 @@ | |||||||
| ; This test makes sure that add instructions are properly eliminated. | ; This test makes sure that add instructions are properly eliminated. | ||||||
|  |  | ||||||
|  | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output && | ||||||
| ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v OK | not grep add | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v OK | not grep add | ||||||
|  |  | ||||||
| implementation | implementation | ||||||
| @@ -240,7 +241,7 @@ ubyte %test34(ubyte %A) { | |||||||
|         ret ubyte %C |         ret ubyte %C | ||||||
| } | } | ||||||
|  |  | ||||||
| define i32 %test34(i32 %a) {  ;; -> -1 | i32 %test34(i32 %a) {  ;; -> -1 | ||||||
|         %tmpnot = xor i32 %a, -1 |         %tmpnot = xor i32 %a, -1 | ||||||
|         %tmp2 = add i32 %tmpnot, %a |         %tmp2 = add i32 %tmpnot, %a | ||||||
|         ret i32 %tmp2 |         ret i32 %tmp2 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user