513e744d9b 
								
							 
						 
						
							
							
								
								AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.  
							
							... 
							
							
							
							There is code in the wild that relies on $0 not being expanded.
llvm-svn: 201784 
							
						 
						
							2014-02-20 13:36:32 +00:00  
				
					
						
							
							
								 
						
							
								ca08df756e 
								
							 
						 
						
							
							
								
								Fix a bug in the MC asm parser evaluating expressions.  It was treating:  
							
							... 
							
							
							
							A = 9
B = 3 * A - 2 * A + 1 as  B = 3 * A - (2 * A + 1)
rdar://13816516
llvm-svn: 181366 
							
						 
						
							2013-05-07 21:40:58 +00:00  
				
					
						
							
							
								 
						
							
								bd16424f91 
								
							 
						 
						
							
							
								
								Fix AsmParser binary precedence for shift operators.  
							
							... 
							
							
							
							rdar://9976729
llvm-svn: 138208 
							
						 
						
							2011-08-20 16:24:13 +00:00  
				
					
						
							
							
								 
						
							
								3322f02a03 
								
							 
						 
						
							
							
								
								Tidy up. Whitespace.  
							
							... 
							
							
							
							llvm-svn: 138207 
							
						 
						
							2011-08-20 16:10:09 +00:00  
				
					
						
							
							
								 
						
							
								0c03a3a146 
								
							 
						 
						
							
							
								
								Revert r125595, which is an X86-only undocumented assembly syntax extension  
							
							... 
							
							
							
							enabled for all targets. Non-X86 targets should not have this behavior
enabled by default.
Joerg, if you would like to resubmit with the behavior conditionalized to be
X86-ELF only, that's fine.
llvm-svn: 126336 
							
						 
						
							2011-02-23 21:26:51 +00:00  
				
					
						
							
							
								 
						
							
								4e0f4957bc 
								
							 
						 
						
							
							
								
								Add support for parsing [expr].  
							
							... 
							
							
							
							This is submitted by Joerg Sonnenberger and fixes his PR8685.
llvm-svn: 125595 
							
						 
						
							2011-02-15 20:43:39 +00:00  
				
					
						
							
							
								 
						
							
								b3a48f3459 
								
							 
						 
						
							
							
								
								MC/AsmParser: Fix relative precedence of {+,-} and comparison ops.  
							
							... 
							
							
							
							llvm-svn: 117299 
							
						 
						
							2010-10-25 20:18:56 +00:00  
				
					
						
							
							
								 
						
							
								7484d2cbec 
								
							 
						 
						
							
							
								
								MC/AsmLexer: Fix bug in source location for Slash token.  
							
							... 
							
							
							
							llvm-svn: 117298 
							
						 
						
							2010-10-25 20:18:53 +00:00  
				
					
						
							
							
								 
						
							
								95db1cc022 
								
							 
						 
						
							
							
								
								tweak test.  
							
							... 
							
							
							
							llvm-svn: 117297 
							
						 
						
							2010-10-25 20:18:49 +00:00  
				
					
						
							
							
								 
						
							
								0c193ca626 
								
							 
						 
						
							
							
								
								MC/AsmParser: Rewrite test to actually check some parts of expression parsing,  
							
							... 
							
							
							
							now that we have macros and friends. Uncovered a bug in macro expansion...
llvm-svn: 117295 
							
						 
						
							2010-10-25 20:18:41 +00:00  
				
					
						
							
							
								 
						
							
								d388c93f87 
								
							 
						 
						
							
							
								
								MC/AsmParser: Move .tbss and .zerofill parsing to Darwin specific parser.  
							
							... 
							
							
							
							llvm-svn: 108180 
							
						 
						
							2010-07-12 19:37:35 +00:00  
				
					
						
							
							
								 
						
							
								6b55cb9cd8 
								
							 
						 
						
							
							
								
								implement mc asmparser support for '.', which gets the  
							
							... 
							
							
							
							current PC.  rdar://7834775
We now produce an identical .o file compared to the cctools
assembler for something like this:
_f0:
L0:
        jmp L1
        .long . - L0
L1:
        jmp A
        .long . - L1
        .zerofill __DATA,_bss,A,0
llvm-svn: 101227 
							
						 
						
							2010-04-14 04:40:28 +00:00  
				
					
						
							
							
								 
						
							
								807a3bcbbb 
								
							 
						 
						
							
							
								
								fix a parsing problem on instructions like:  
							
							... 
							
							
							
							movw	$8, (_cost_table_-L97$pb)+66(%eax)
After the parens, we could still have a binop.
llvm-svn: 94345 
							
						 
						
							2010-01-24 01:07:33 +00:00  
				
					
						
							
							
								 
						
							
								8c6bad2f66 
								
							 
						 
						
							
							
								
								llvm-mc: Add -triple, and start fetching the target asm printer.  
							
							... 
							
							
							
							llvm-svn: 76257 
							
						 
						
							2009-07-17 22:38:58 +00:00  
				
					
						
							
							
								 
						
							
								8561b6aea0 
								
							 
						 
						
							
							
								
								llvm-mc: Symbols in a relocatable expression of the (a - b + cst) form are  
							
							... 
							
							
							
							allowed to be undefined when the expression is seen, we cannot enforce the
same-section requirement until the entire assembly file has been seen.
llvm-svn: 74565 
							
						 
						
							2009-06-30 22:49:27 +00:00  
				
					
						
							
							
								 
						
							
								75630b355a 
								
							 
						 
						
							
							
								
								llvm-mc: Accept relocatable expressions for .org, assignments, .byte, etc.  
							
							... 
							
							
							
							llvm-svn: 74498 
							
						 
						
							2009-06-30 02:10:03 +00:00  
				
					
						
							
							
								 
						
							
								5992b4a211 
								
							 
						 
						
							
							
								
								llvm-mc: Recognize C++ style comments.  
							
							... 
							
							
							
							llvm-svn: 74463 
							
						 
						
							2009-06-29 22:00:57 +00:00  
				
					
						
							
							
								 
						
							
								7e8d6c7215 
								
							 
						 
						
							
							
								
								MC: Improve expression parsing and implement evaluation of absolute expressions.  
							
							... 
							
							
							
							llvm-svn: 74448 
							
						 
						
							2009-06-29 20:37:27 +00:00