mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Explicitly disallow predication in Thumb1 assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138562 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -2952,6 +2952,12 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc, | |||||||
|   Mnemonic = splitMnemonic(Mnemonic, PredicationCode, CarrySetting, |   Mnemonic = splitMnemonic(Mnemonic, PredicationCode, CarrySetting, | ||||||
|                            ProcessorIMod); |                            ProcessorIMod); | ||||||
|  |  | ||||||
|  |   // In Thumb1, only the branch (B) instruction can be predicated. | ||||||
|  |   if (isThumbOne() && PredicationCode != ARMCC::AL && Mnemonic != "b") { | ||||||
|  |     Parser.EatToEndOfStatement(); | ||||||
|  |     return Error(NameLoc, "conditional execution not supported in Thumb1"); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   Operands.push_back(ARMOperand::CreateToken(Mnemonic, NameLoc)); |   Operands.push_back(ARMOperand::CreateToken(Mnemonic, NameLoc)); | ||||||
|  |  | ||||||
|   // FIXME: This is all a pretty gross hack. We should automatically handle |   // FIXME: This is all a pretty gross hack. We should automatically handle | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user