mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Essentially the same as the GEP change in r230786.
A similar migration script can be used to update test cases, though a few more
test case improvements/changes were required this time around: (r229269-r229278)
import fileinput
import sys
import re
pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)")
for line in sys.stdin:
  sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line))
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7649
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230794 91177308-0d34-0410-b5e6-96231b3b80d8
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			561 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			561 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc < %s
 | |
| 
 | |
| define void @main()  {
 | |
| if.end:
 | |
|   br label %block.i.i
 | |
| 
 | |
| block.i.i:
 | |
|   %tmpbb = load i8, i8* undef
 | |
|   %tmp54 = zext i8 %tmpbb to i64
 | |
|   %tmp59 = and i64 %tmp54, 8
 | |
|   %tmp60 = add i64 %tmp59, 3691045929300498764
 | |
|   %tmp62 = sub i64 %tmp60, 3456506383779105993
 | |
|   %tmp63 = xor i64 1050774804270620004, %tmp62
 | |
|   %tmp65 = xor i64 %tmp62, 234539545521392771
 | |
|   %tmp67 = or i64 %tmp65, %tmp63
 | |
|   %tmp71 = xor i64 %tmp67, 6781485823212740913
 | |
|   %tmp72 = trunc i64 %tmp71 to i32
 | |
|   %tmp74 = lshr i32 2, %tmp72
 | |
|   store i32 %tmp74, i32* undef
 | |
|   br label %block.i.i
 | |
| }
 |