105 lines
		
	
	
	
		
			5.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			105 lines
		
	
	
	
		
			5.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								<html lang="en">
							 | 
						||
| 
								 | 
							
								<head>
							 | 
						||
| 
								 | 
							
								<title>M32R-Warnings - Using as</title>
							 | 
						||
| 
								 | 
							
								<meta http-equiv="Content-Type" content="text/html">
							 | 
						||
| 
								 | 
							
								<meta name="description" content="Using as">
							 | 
						||
| 
								 | 
							
								<meta name="generator" content="makeinfo 4.7">
							 | 
						||
| 
								 | 
							
								<link title="Top" rel="start" href="index.html#Top">
							 | 
						||
| 
								 | 
							
								<link rel="up" href="M32R_002dDependent.html#M32R_002dDependent" title="M32R-Dependent">
							 | 
						||
| 
								 | 
							
								<link rel="prev" href="M32R_002dDirectives.html#M32R_002dDirectives" title="M32R-Directives">
							 | 
						||
| 
								 | 
							
								<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
							 | 
						||
| 
								 | 
							
								<!--
							 | 
						||
| 
								 | 
							
								This file documents the GNU Assembler "as".
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002,
							 | 
						||
| 
								 | 
							
								2006, 2007 Free Software Foundation, Inc.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Permission is granted to copy, distribute and/or modify this document
							 | 
						||
| 
								 | 
							
								under the terms of the GNU Free Documentation License, Version 1.1
							 | 
						||
| 
								 | 
							
								or any later version published by the Free Software Foundation;
							 | 
						||
| 
								 | 
							
								with no Invariant Sections, with no Front-Cover Texts, and with no
							 | 
						||
| 
								 | 
							
								Back-Cover Texts.  A copy of the license is included in the
							 | 
						||
| 
								 | 
							
								section entitled ``GNU Free Documentation License''.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								man end-->
							 | 
						||
| 
								 | 
							
								<meta http-equiv="Content-Style-Type" content="text/css">
							 | 
						||
| 
								 | 
							
								<style type="text/css"><!--
							 | 
						||
| 
								 | 
							
								  pre.display { font-family:inherit }
							 | 
						||
| 
								 | 
							
								  pre.format  { font-family:inherit }
							 | 
						||
| 
								 | 
							
								  pre.smalldisplay { font-family:inherit; font-size:smaller }
							 | 
						||
| 
								 | 
							
								  pre.smallformat  { font-family:inherit; font-size:smaller }
							 | 
						||
| 
								 | 
							
								  pre.smallexample { font-size:smaller }
							 | 
						||
| 
								 | 
							
								  pre.smalllisp    { font-size:smaller }
							 | 
						||
| 
								 | 
							
								  span.sc { font-variant:small-caps }
							 | 
						||
| 
								 | 
							
								  span.roman { font-family: serif; font-weight: normal; } 
							 | 
						||
| 
								 | 
							
								--></style>
							 | 
						||
| 
								 | 
							
								</head>
							 | 
						||
| 
								 | 
							
								<body>
							 | 
						||
| 
								 | 
							
								<div class="node">
							 | 
						||
| 
								 | 
							
								<p>
							 | 
						||
| 
								 | 
							
								<a name="M32R_002dWarnings"></a>Previous: <a rel="previous" accesskey="p" href="M32R_002dDirectives.html#M32R_002dDirectives">M32R-Directives</a>,
							 | 
						||
| 
								 | 
							
								Up: <a rel="up" accesskey="u" href="M32R_002dDependent.html#M32R_002dDependent">M32R-Dependent</a>
							 | 
						||
| 
								 | 
							
								<hr><br>
							 | 
						||
| 
								 | 
							
								</div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<h4 class="subsection">9.19.3 M32R Warnings</h4>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<p><a name="index-warnings_002c-M32R-1082"></a><a name="index-M32R-warnings-1083"></a>
							 | 
						||
| 
								 | 
							
								There are several warning and error messages that can be produced by
							 | 
						||
| 
								 | 
							
								<code>as</code> which are specific to the M32R:
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <dl>
							 | 
						||
| 
								 | 
							
								<dt><code>output of 1st instruction is the same as an input to 2nd instruction - is this intentional ?</code><dd>This message is only produced if warnings for explicit parallel
							 | 
						||
| 
								 | 
							
								conflicts have been enabled.  It indicates that the assembler has
							 | 
						||
| 
								 | 
							
								encountered a parallel instruction in which the destination register of
							 | 
						||
| 
								 | 
							
								the left hand instruction is used as an input register in the right hand
							 | 
						||
| 
								 | 
							
								instruction.  For example in this code fragment
							 | 
						||
| 
								 | 
							
								<span class="samp">mv r1, r2 || neg r3, r1</span> register r1 is the destination of the
							 | 
						||
| 
								 | 
							
								move instruction and the input to the neg instruction.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <br><dt><code>output of 2nd instruction is the same as an input to 1st instruction - is this intentional ?</code><dd>This message is only produced if warnings for explicit parallel
							 | 
						||
| 
								 | 
							
								conflicts have been enabled.  It indicates that the assembler has
							 | 
						||
| 
								 | 
							
								encountered a parallel instruction in which the destination register of
							 | 
						||
| 
								 | 
							
								the right hand instruction is used as an input register in the left hand
							 | 
						||
| 
								 | 
							
								instruction.  For example in this code fragment
							 | 
						||
| 
								 | 
							
								<span class="samp">mv r1, r2 || neg r2, r3</span> register r2 is the destination of the
							 | 
						||
| 
								 | 
							
								neg instruction and the input to the move instruction.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <br><dt><code>instruction </code><span class="samp">...</span><code> is for the M32RX only</code><dd>This message is produced when the assembler encounters an instruction
							 | 
						||
| 
								 | 
							
								which is only supported by the M32Rx processor, and the <span class="samp">-m32rx</span>
							 | 
						||
| 
								 | 
							
								command line flag has not been specified to allow assembly of such
							 | 
						||
| 
								 | 
							
								instructions.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <br><dt><code>unknown instruction </code><span class="samp">...</span><dd>This message is produced when the assembler encounters an instruction
							 | 
						||
| 
								 | 
							
								which it does not recognize.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <br><dt><code>only the NOP instruction can be issued in parallel on the m32r</code><dd>This message is produced when the assembler encounters a parallel
							 | 
						||
| 
								 | 
							
								instruction which does not involve a NOP instruction and the
							 | 
						||
| 
								 | 
							
								<span class="samp">-m32rx</span> command line flag has not been specified.  Only the M32Rx
							 | 
						||
| 
								 | 
							
								processor is able to execute two instructions in parallel.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <br><dt><code>instruction </code><span class="samp">...</span><code> cannot be executed in parallel.</code><dd>This message is produced when the assembler encounters a parallel
							 | 
						||
| 
								 | 
							
								instruction which is made up of one or two instructions which cannot be
							 | 
						||
| 
								 | 
							
								executed in parallel.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <br><dt><code>Instructions share the same execution pipeline</code><dd>This message is produced when the assembler encounters a parallel
							 | 
						||
| 
								 | 
							
								instruction whoes components both use the same execution pipeline.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								     <br><dt><code>Instructions write to the same destination register.</code><dd>This message is produced when the assembler encounters a parallel
							 | 
						||
| 
								 | 
							
								instruction where both components attempt to modify the same register. 
							 | 
						||
| 
								 | 
							
								For example these code fragments will produce this message:
							 | 
						||
| 
								 | 
							
								<span class="samp">mv r1, r2 || neg r1, r3</span>
							 | 
						||
| 
								 | 
							
								<span class="samp">jl r0 || mv r14, r1</span>
							 | 
						||
| 
								 | 
							
								<span class="samp">st r2, @-r1 || mv r1, r3</span>
							 | 
						||
| 
								 | 
							
								<span class="samp">mv r1, r2 || ld r0, @r1+</span>
							 | 
						||
| 
								 | 
							
								<span class="samp">cmp r1, r2 || addx r3, r4</span> (Both write to the condition bit)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								   </dl>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								<!-- Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2003, -->
							 | 
						||
| 
								 | 
							
								<!-- 2004 Free Software Foundation, Inc. -->
							 | 
						||
| 
								 | 
							
								<!-- This is part of the GAS manual. -->
							 | 
						||
| 
								 | 
							
								<!-- For copying conditions, see the file as.texinfo. -->
							 | 
						||
| 
								 | 
							
								</body></html>
							 | 
						||
| 
								 | 
							
								
							 |