| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.42.4 Constraints for Particular Machines
Whenever possible, you should use the general-purpose constraint letters
in asm arguments, since they will convey meaning more readily to
people reading your code. Failing that, use the constraint letters
that usually have very similar meanings across architectures. The most
commonly used constraints are ‘m’ and ‘r’ (for memory and
general-purpose registers respectively; see section Simple Constraints), and
‘I’, usually the letter indicating the most common
immediate-constant format.
Each architecture defines additional constraints. These constraints
are used by the compiler itself for instruction generation, as well as
for asm statements; therefore, some of the constraints are not
particularly useful for asm. Here is a summary of some of the
machine-dependent constraints available on some particular machines;
it includes both constraints that are useful for asm and
constraints that aren’t. The compiler source file mentioned in the
table heading for each architecture is the definitive reference for
the meanings of that architecture’s constraints.
- AArch64 family—‘config/aarch64/constraints.md’
kThe stack pointer register (
SP)wFloating point or SIMD vector register
IInteger constant that is valid as an immediate operand in an
ADDinstructionJInteger constant that is valid as an immediate operand in a
SUBinstruction (once negated)KInteger constant that can be used with a 32-bit logical instruction
LInteger constant that can be used with a 64-bit logical instruction
MInteger constant that is valid as an immediate operand in a 32-bit
MOVpseudo instruction. TheMOVmay be assembled to one of several different machine instructions depending on the valueNInteger constant that is valid as an immediate operand in a 64-bit
MOVpseudo instructionSAn absolute symbolic address or a label reference
YFloating point constant zero
ZInteger constant zero
UsaAn absolute symbolic address
UshThe high part (bits 12 and upwards) of the pc-relative address of a symbol within 4GB of the instruction
QA memory address which uses a single base register with no offset
UmpA memory address suitable for a load/store pair instruction in SI, DI, SF and DF modes
- ARM family—‘config/arm/constraints.md’
wVFP floating-point register
GThe floating-point constant 0.0
IInteger that is valid as an immediate operand in a data processing instruction. That is, an integer in the range 0 to 255 rotated by a multiple of 2
JInteger in the range -4095 to 4095
KInteger that satisfies constraint ‘I’ when inverted (ones complement)
LInteger that satisfies constraint ‘I’ when negated (twos complement)
MInteger in the range 0 to 32
QA memory reference where the exact address is in a single register (‘‘m’’ is preferable for
asmstatements)RAn item in the constant pool
SA symbol in the text segment of the current file
UvA memory reference suitable for VFP load/store insns (reg+constant offset)
UyA memory reference suitable for iWMMXt load/store instructions.
UqA memory reference suitable for the ARMv4 ldrsb instruction.
- AVR family—‘config/avr/constraints.md’
lRegisters from r0 to r15
aRegisters from r16 to r23
dRegisters from r16 to r31
wRegisters from r24 to r31. These registers can be used in ‘adiw’ command
ePointer register (r26–r31)
bBase pointer register (r28–r31)
qStack pointer register (SPH:SPL)
tTemporary register r0
xRegister pair X (r27:r26)
yRegister pair Y (r29:r28)
zRegister pair Z (r31:r30)
IConstant greater than -1, less than 64
JConstant greater than -64, less than 1
KConstant integer 2
LConstant integer 0
MConstant that fits in 8 bits
NConstant integer -1
OConstant integer 8, 16, or 24
PConstant integer 1
GA floating point constant 0.0
QA memory address based on Y or Z pointer with displacement.
- Epiphany—‘config/epiphany/constraints.md’
U16An unsigned 16-bit constant.
KAn unsigned 5-bit constant.
LA signed 11-bit constant.
Cm1A signed 11-bit constant added to -1. Can only match when the ‘-m1reg-reg’ option is active.
Cl1Left-shift of -1, i.e., a bit mask with a block of leading ones, the rest being a block of trailing zeroes. Can only match when the ‘-m1reg-reg’ option is active.
Cr1Right-shift of -1, i.e., a bit mask with a trailing block of ones, the rest being zeroes. Or to put it another way, one less than a power of two. Can only match when the ‘-m1reg-reg’ option is active.
CalConstant for arithmetic/logical operations. This is like
i, except that for position independent code, no symbols / expressions needing relocations are allowed.CsySymbolic constant for call/jump instruction.
RcsThe register class usable in short insns. This is a register class constraint, and can thus drive register allocation. This constraint won’t match unless ‘-mprefer-short-insn-regs’ is in effect.
RscThe the register class of registers that can be used to hold a sibcall call address. I.e., a caller-saved register.
RctCore control register class.
RgsThe register group usable in short insns. This constraint does not use a register class, so that it only passively matches suitable registers, and doesn’t drive register allocation.
RraMatches the return address if it can be replaced with the link register.
RccMatches the integer condition code register.
SraMatches the return address if it is in a stack slot.
CfmMatches control register values to switch fp mode, which are encapsulated in
UNSPEC_FP_MODE.
- CR16 Architecture—‘config/cr16/cr16.h’
bRegisters from r0 to r14 (registers without stack pointer)
tRegister from r0 to r11 (all 16-bit registers)
pRegister from r12 to r15 (all 32-bit registers)
ISigned constant that fits in 4 bits
JSigned constant that fits in 5 bits
KSigned constant that fits in 6 bits
LUnsigned constant that fits in 4 bits
MSigned constant that fits in 32 bits
NCheck for 64 bits wide constants for add/sub instructions
GFloating point constant that is legal for store immediate
- Hewlett-Packard PA-RISC—‘config/pa/pa.h’
aGeneral register 1
fFloating point register
qShift amount register
xFloating point register (deprecated)
yUpper floating point register (32-bit), floating point register (64-bit)
ZAny register
ISigned 11-bit integer constant
JSigned 14-bit integer constant
KInteger constant that can be deposited with a
zdepiinstructionLSigned 5-bit integer constant
MInteger constant 0
NInteger constant that can be loaded with a
ldilinstructionOInteger constant whose value plus one is a power of 2
PInteger constant that can be used for
andoperations indepiandextruinstructionsSInteger constant 31
UInteger constant 63
GFloating-point constant 0.0
AA
lo_sumdata-linkage-table memory operandQA memory operand that can be used as the destination operand of an integer store instruction
RA scaled or unscaled indexed memory operand
TA memory operand for floating-point loads and stores
WA register indirect memory operand
- picoChip family—‘picochip.h’
kStack register.
fPointer register. A register which can be used to access memory without supplying an offset. Any other register can be used to access memory, but will need a constant offset. In the case of the offset being zero, it is more efficient to use a pointer register, since this reduces code size.
tA twin register. A register which may be paired with an adjacent register to create a 32-bit register.
aAny absolute memory address (e.g., symbolic constant, symbolic constant + offset).
I4-bit signed integer.
J4-bit unsigned integer.
K8-bit signed integer.
MAny constant whose absolute value is no greater than 4-bits.
N10-bit signed integer
O16-bit signed integer.
- PowerPC and IBM RS6000—‘config/rs6000/rs6000.h’
bAddress base register
dFloating point register (containing 64-bit value)
fFloating point register (containing 32-bit value)
vAltivec vector register
wdVSX vector register to hold vector double data
wfVSX vector register to hold vector float data
wsVSX vector register to hold scalar float data
waAny VSX register
h‘MQ’, ‘CTR’, or ‘LINK’ register
q‘MQ’ register
c‘CTR’ register
l‘LINK’ register
x‘CR’ register (condition register) number 0
y‘CR’ register (condition register)
z‘XER[CA]’ carry bit (part of the XER register)
ISigned 16-bit constant
JUnsigned 16-bit constant shifted left 16 bits (use ‘L’ instead for
SImodeconstants)KUnsigned 16-bit constant
LSigned 16-bit constant shifted left 16 bits
MConstant larger than 31
NExact power of 2
OZero
PConstant whose negation is a signed 16-bit constant
GFloating point constant that can be loaded into a register with one instruction per word
HInteger/Floating point constant that can be loaded into a register using three instructions
mMemory operand. Normally,
mdoes not allow addresses that update the base register. If ‘<’ or ‘>’ constraint is also used, they are allowed and therefore on PowerPC targets in that case it is only safe to use ‘m<>’ in anasmstatement if thatasmstatement accesses the operand exactly once. Theasmstatement must also use ‘%U<opno>’ as a placeholder for the “update” flag in the corresponding load or store instruction. For example:asm ("st%U0 %1,%0" : "=m<>" (mem) : "r" (val));is correct but:
asm ("st %1,%0" : "=m<>" (mem) : "r" (val));is not.
esA “stable” memory operand; that is, one which does not include any automodification of the base register. This used to be useful when ‘m’ allowed automodification of the base register, but as those are now only allowed when ‘<’ or ‘>’ is used, ‘es’ is basically the same as ‘m’ without ‘<’ and ‘>’.
QMemory operand that is an offset from a register (it is usually better to use ‘m’ or ‘es’ in
asmstatements)ZMemory operand that is an indexed or indirect from a register (it is usually better to use ‘m’ or ‘es’ in
asmstatements)RAIX TOC entry
aAddress operand that is an indexed or indirect from a register (‘p’ is preferable for
asmstatements)SConstant suitable as a 64-bit mask operand
TConstant suitable as a 32-bit mask operand
USystem V Release 4 small data area reference
tAND masks that can be performed by two rldic{l, r} instructions
WVector constant that does not require memory
jVector constant that is all zeros.
- Intel 386—‘config/i386/constraints.md’
RLegacy register—the eight integer registers available on all i386 processors (
a,b,c,d,si,di,bp,sp).qAny register accessible as
rl. In 32-bit mode,a,b,c, andd; in 64-bit mode, any integer register.QAny register accessible as
rh:a,b,c, andd.aThe
aregister.bThe
bregister.cThe
cregister.dThe
dregister.SThe
siregister.DThe
diregister.AThe
aanddregisters. This class is used for instructions that return double word results in theax:dxregister pair. Single word values will be allocated either inaxordx. For example on i386 the following implementsrdtsc:unsigned long long rdtsc (void) { unsigned long long tick; __asm__ __volatile__("rdtsc":"=A"(tick)); return tick; }This is not correct on x86_64 as it would allocate tick in either
axordx. You have to use the following variant instead:unsigned long long rdtsc (void) { unsigned int tickl, tickh; __asm__ __volatile__("rdtsc":"=a"(tickl),"=d"(tickh)); return ((unsigned long long)tickh << 32)|tickl; }fAny 80387 floating-point (stack) register.
tTop of 80387 floating-point stack (
%st(0)).uSecond from top of 80387 floating-point stack (
%st(1)).yAny MMX register.
xAny SSE register.
YzFirst SSE register (
%xmm0).IInteger constant in the range 0 … 31, for 32-bit shifts.
JInteger constant in the range 0 … 63, for 64-bit shifts.
KSigned 8-bit integer constant.
L0xFFor0xFFFF, for andsi as a zero-extending move.M0, 1, 2, or 3 (shifts for the
leainstruction).NUnsigned 8-bit integer constant (for
inandoutinstructions).GStandard 80387 floating point constant.
CStandard SSE floating point constant.
e32-bit signed integer constant, or a symbolic reference known to fit that range (for immediate operands in sign-extending x86-64 instructions).
Z32-bit unsigned integer constant, or a symbolic reference known to fit that range (for immediate operands in zero-extending x86-64 instructions).
- Intel IA-64—‘config/ia64/ia64.h’
aGeneral register
r0tor3foraddlinstructionbBranch register
cPredicate register (‘c’ as in “conditional”)
dApplication register residing in M-unit
eApplication register residing in I-unit
fFloating-point register
mMemory operand. If used together with ‘<’ or ‘>’, the operand can have postincrement and postdecrement which require printing with ‘%Pn’ on IA-64.
GFloating-point constant 0.0 or 1.0
I14-bit signed integer constant
J22-bit signed integer constant
K8-bit signed integer constant for logical instructions
L8-bit adjusted signed integer constant for compare pseudo-ops
M6-bit unsigned integer constant for shift counts
N9-bit signed integer constant for load and store postincrements
OThe constant zero
P0 or -1 for
depinstructionQNon-volatile memory for floating-point loads and stores
RInteger constant in the range 1 to 4 for
shladdinstructionSMemory operand except postincrement and postdecrement. This is now roughly the same as ‘m’ when not used together with ‘<’ or ‘>’.
- FRV—‘config/frv/frv.h’
aRegister in the class
ACC_REGS(acc0toacc7).bRegister in the class
EVEN_ACC_REGS(acc0toacc7).cRegister in the class
CC_REGS(fcc0tofcc3andicc0toicc3).dRegister in the class
GPR_REGS(gr0togr63).eRegister in the class
EVEN_REGS(gr0togr63). Odd registers are excluded not in the class but through the use of a machine mode larger than 4 bytes.fRegister in the class
FPR_REGS(fr0tofr63).hRegister in the class
FEVEN_REGS(fr0tofr63). Odd registers are excluded not in the class but through the use of a machine mode larger than 4 bytes.lRegister in the class
LR_REG(thelrregister).qRegister in the class
QUAD_REGS(gr2togr63). Register numbers not divisible by 4 are excluded not in the class but through the use of a machine mode larger than 8 bytes.tRegister in the class
ICC_REGS(icc0toicc3).uRegister in the class
FCC_REGS(fcc0tofcc3).vRegister in the class
ICR_REGS(cc4tocc7).wRegister in the class
FCR_REGS(cc0tocc3).xRegister in the class
QUAD_FPR_REGS(fr0tofr63). Register numbers not divisible by 4 are excluded not in the class but through the use of a machine mode larger than 8 bytes.zRegister in the class
SPR_REGS(lcrandlr).ARegister in the class
QUAD_ACC_REGS(acc0toacc7).BRegister in the class
ACCG_REGS(accg0toaccg7).CRegister in the class
CR_REGS(cc0tocc7).GFloating point constant zero
I6-bit signed integer constant
J10-bit signed integer constant
L16-bit signed integer constant
M16-bit unsigned integer constant
N12-bit signed integer constant that is negative—i.e. in the range of -2048 to -1
OConstant zero
P12-bit signed integer constant that is greater than zero—i.e. in the range of 1 to 2047.
- Blackfin family—‘config/bfin/constraints.md’
aP register
dD register
zA call clobbered P register.
qnA single register. If n is in the range 0 to 7, the corresponding D register. If it is
A, then the register P0.DEven-numbered D register
WOdd-numbered D register
eAccumulator register.
AEven-numbered accumulator register.
BOdd-numbered accumulator register.
bI register
vB register
fM register
cRegisters used for circular buffering, i.e. I, B, or L registers.
CThe CC register.
tLT0 or LT1.
kLC0 or LC1.
uLB0 or LB1.
xAny D, P, B, M, I or L register.
yAdditional registers typically used only in prologues and epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and USP.
wAny register except accumulators or CC.
KshSigned 16 bit integer (in the range -32768 to 32767)
KuhUnsigned 16 bit integer (in the range 0 to 65535)
Ks7Signed 7 bit integer (in the range -64 to 63)
Ku7Unsigned 7 bit integer (in the range 0 to 127)
Ku5Unsigned 5 bit integer (in the range 0 to 31)
Ks4Signed 4 bit integer (in the range -8 to 7)
Ks3Signed 3 bit integer (in the range -3 to 4)
Ku3Unsigned 3 bit integer (in the range 0 to 7)
PnConstant n, where n is a single-digit constant in the range 0 to 4.
PAAn integer equal to one of the MACFLAG_XXX constants that is suitable for use with either accumulator.
PBAn integer equal to one of the MACFLAG_XXX constants that is suitable for use only with accumulator A1.
M1Constant 255.
M2Constant 65535.
JAn integer constant with exactly a single bit set.
LAn integer constant with all bits set except exactly one.
HQAny SYMBOL_REF.
- M32C—‘config/m32c/m32c.c’
RspRfbRsb‘$sp’, ‘$fb’, ‘$sb’.
RcrAny control register, when they’re 16 bits wide (nothing if control registers are 24 bits wide)
RclAny control register, when they’re 24 bits wide.
R0wR1wR2wR3w$r0, $r1, $r2, $r3.
R02$r0 or $r2, or $r2r0 for 32 bit values.
R13$r1 or $r3, or $r3r1 for 32 bit values.
RdiA register that can hold a 64 bit value.
Rhl$r0 or $r1 (registers with addressable high/low bytes)
R23$r2 or $r3
RaaAddress registers
RawAddress registers when they’re 16 bits wide.
RalAddress registers when they’re 24 bits wide.
RqiRegisters that can hold QI values.
RadRegisters that can be used with displacements ($a0, $a1, $sb).
RsiRegisters that can hold 32 bit values.
RhiRegisters that can hold 16 bit values.
RhcRegisters chat can hold 16 bit values, including all control registers.
Rra$r0 through R1, plus $a0 and $a1.
RflThe flags register.
RmmThe memory-based pseudo-registers $mem0 through $mem15.
RpiRegisters that can hold pointers (16 bit registers for r8c, m16c; 24 bit registers for m32cm, m32c).
RpaMatches multiple registers in a PARALLEL to form a larger register. Used to match function return values.
Is3-8 … 7
IS1-128 … 127
IS2-32768 … 32767
IU20 … 65535
In4-8 … -1 or 1 … 8
In5-16 … -1 or 1 … 16
In6-32 … -1 or 1 … 32
IM2-65536 … -1
IlbAn 8 bit value with exactly one bit set.
IlwA 16 bit value with exactly one bit set.
SdThe common src/dest memory addressing modes.
SaMemory addressed using $a0 or $a1.
SiMemory addressed with immediate addresses.
SsMemory addressed using the stack pointer ($sp).
SfMemory addressed using the frame base register ($fb).
SsMemory addressed using the small base register ($sb).
S1$r1h
- MeP—‘config/mep/constraints.md’
aThe $sp register.
bThe $tp register.
cAny control register.
dEither the $hi or the $lo register.
emCoprocessor registers that can be directly loaded ($c0-$c15).
exCoprocessor registers that can be moved to each other.
erCoprocessor registers that can be moved to core registers.
hThe $hi register.
jThe $rpc register.
lThe $lo register.
tRegisters which can be used in $tp-relative addressing.
vThe $gp register.
xThe coprocessor registers.
yThe coprocessor control registers.
zThe $0 register.
AUser-defined register set A.
BUser-defined register set B.
CUser-defined register set C.
DUser-defined register set D.
IOffsets for $gp-rel addressing.
JConstants that can be used directly with boolean insns.
KConstants that can be moved directly to registers.
LSmall constants that can be added to registers.
MLong shift counts.
NSmall constants that can be compared to registers.
OConstants that can be loaded into the top half of registers.
SSigned 8-bit immediates.
TSymbols encoded for $tp-rel or $gp-rel addressing.
UNon-constant addresses for loading/saving coprocessor registers.
WThe top half of a symbol’s value.
YA register indirect address without offset.
ZSymbolic references to the control bus.
- MicroBlaze—‘config/microblaze/constraints.md’
dA general register (
r0tor31).zA status register (
rmsr,$fcc1to$fcc7).
- MIPS—‘config/mips/constraints.md’
dAn address register. This is equivalent to
runless generating MIPS16 code.fA floating-point register (if available).
hFormerly the
hiregister. This constraint is no longer supported.lThe
loregister. Use this register to store values that are no bigger than a word.xThe concatenated
hiandloregisters. Use this register to store doubleword values.cA register suitable for use in an indirect jump. This will always be
$25for ‘-mabicalls’.vRegister
$3. Do not use this constraint in new code; it is retained only for compatibility with glibc.yEquivalent to
r; retained for backwards compatibility.zA floating-point condition code register.
IA signed 16-bit constant (for arithmetic instructions).
JInteger zero.
KAn unsigned 16-bit constant (for logic instructions).
LA signed 32-bit constant in which the lower 16 bits are zero. Such constants can be loaded using
lui.MA constant that cannot be loaded using
lui,addiuorori.NA constant in the range -65535 to -1 (inclusive).
OA signed 15-bit constant.
PA constant in the range 1 to 65535 (inclusive).
GFloating-point zero.
RAn address that can be used in a non-macro load or store.
- Motorola 680x0—‘config/m68k/constraints.md’
aAddress register
dData register
f68881 floating-point register, if available
IInteger in the range 1 to 8
J16-bit signed number
KSigned number whose magnitude is greater than 0x80
LInteger in the range -8 to -1
MSigned number whose magnitude is greater than 0x100
NRange 24 to 31, rotatert:SI 8 to 1 expressed as rotate
O16 (for rotate using swap)
PRange 8 to 15, rotatert:HI 8 to 1 expressed as rotate
RNumbers that mov3q can handle
GFloating point constant that is not a 68881 constant
SOperands that satisfy ’m’ when -mpcrel is in effect
TOperands that satisfy ’s’ when -mpcrel is not in effect
QAddress register indirect addressing mode
URegister offset addressing
Wconst_call_operand
Cssymbol_ref or const
Ciconst_int
C0const_int 0
CjRange of signed numbers that don’t fit in 16 bits
CmvqIntegers valid for mvq
CapswIntegers valid for a moveq followed by a swap
CmvzIntegers valid for mvz
CmvsIntegers valid for mvs
Appush_operand
AcNon-register operands allowed in clr
- Moxie—‘config/moxie/constraints.md’
AAn absolute address
BAn offset address
WA register indirect memory operand
IA constant in the range of 0 to 255.
NA constant in the range of 0 to -255.
- PDP-11—‘config/pdp11/constraints.md’
aFloating point registers AC0 through AC3. These can be loaded from/to memory with a single instruction.
dOdd numbered general registers (R1, R3, R5). These are used for 16-bit multiply operations.
fAny of the floating point registers (AC0 through AC5).
GFloating point constant 0.
IAn integer constant that fits in 16 bits.
JAn integer constant whose low order 16 bits are zero.
KAn integer constant that does not meet the constraints for codes ‘I’ or ‘J’.
LThe integer constant 1.
MThe integer constant -1.
NThe integer constant 0.
OInteger constants -4 through -1 and 1 through 4; shifts by these amounts are handled as multiple single-bit shifts rather than a single variable-length shift.
QA memory reference which requires an additional word (address or offset) after the opcode.
RA memory reference that is encoded within the opcode.
- RL78—‘config/rl78/constraints.md’
Int3An integer constant in the range 1 … 7.
Int8An integer constant in the range 0 … 255.
JAn integer constant in the range -255 … 0
KThe integer constant 1.
LThe integer constant -1.
MThe integer constant 0.
NThe integer constant 2.
OThe integer constant -2.
PAn integer constant in the range 1 … 15.
QbiThe built-in compare types–eq, ne, gtu, ltu, geu, and leu.
QscThe synthetic compare types–gt, lt, ge, and le.
WabA memory reference with an absolute address.
WbcA memory reference using
BCas a base register, with an optional offset.WcaA memory reference using
AX,BC,DE, orHLfor the address, for calls.WcvA memory reference using any 16-bit register pair for the address, for calls.
Wd2A memory reference using
DEas a base register, with an optional offset.WdeA memory reference using
DEas a base register, without any offset.WfrAny memory reference to an address in the far address space.
Wh1A memory reference using
HLas a base register, with an optional one-byte offset.WhbA memory reference using
HLas a base register, withBorCas the index register.WhlA memory reference using
HLas a base register, without any offset.Ws1A memory reference using
SPas a base register, with an optional one-byte offset.YAny memory reference to an address in the near address space.
AThe
AXregister.BThe
BCregister.DThe
DEregister.RAthroughLregisters.SThe
SPregister.TThe
HLregister.Z08WThe 16-bit
R8register.Z10WThe 16-bit
R10register.ZintThe registers reserved for interrupts (
R24toR31).aThe
Aregister.bThe
Bregister.cThe
Cregister.dThe
Dregister.eThe
Eregister.hThe
Hregister.lThe
Lregister.vThe virtual registers.
wThe
PSWregister.xThe
Xregister.
- RX—‘config/rx/constraints.md’
QAn address which does not involve register indirect addressing or pre/post increment/decrement addressing.
SymbolA symbol reference.
Int08A constant in the range -256 to 255, inclusive.
Sint08A constant in the range -128 to 127, inclusive.
Sint16A constant in the range -32768 to 32767, inclusive.
Sint24A constant in the range -8388608 to 8388607, inclusive.
Uint04A constant in the range 0 to 15, inclusive.
- SPARC—‘config/sparc/sparc.h’
fFloating-point register on the SPARC-V8 architecture and lower floating-point register on the SPARC-V9 architecture.
eFloating-point register. It is equivalent to ‘f’ on the SPARC-V8 architecture and contains both lower and upper floating-point registers on the SPARC-V9 architecture.
cFloating-point condition code register.
dLower floating-point register. It is only valid on the SPARC-V9 architecture when the Visual Instruction Set is available.
bFloating-point register. It is only valid on the SPARC-V9 architecture when the Visual Instruction Set is available.
h64-bit global or out register for the SPARC-V8+ architecture.
CThe constant all-ones, for floating-point.
ASigned 5-bit constant
DA vector constant
ISigned 13-bit constant
JZero
K32-bit constant with the low 12 bits clear (a constant that can be loaded with the
sethiinstruction)LA constant in the range supported by
movccinstructions (11-bit signed immediate)MA constant in the range supported by
movrccinstructions (10-bit signed immediate)NSame as ‘K’, except that it verifies that bits that are not in the lower 32-bit range are all zero. Must be used instead of ‘K’ for modes wider than
SImodeOThe constant 4096
GFloating-point zero
HSigned 13-bit constant, sign-extended to 32 or 64 bits
PThe constant -1
QFloating-point constant whose integral representation can be moved into an integer register using a single sethi instruction
RFloating-point constant whose integral representation can be moved into an integer register using a single mov instruction
SFloating-point constant whose integral representation can be moved into an integer register using a high/lo_sum instruction sequence
TMemory address aligned to an 8-byte boundary
UEven register
WMemory address for ‘e’ constraint registers
wMemory address with only a base register
YVector zero
- SPU—‘config/spu/spu.h’
aAn immediate which can be loaded with the il/ila/ilh/ilhu instructions. const_int is treated as a 64 bit value.
cAn immediate for and/xor/or instructions. const_int is treated as a 64 bit value.
dAn immediate for the
iohlinstruction. const_int is treated as a 64 bit value.fAn immediate which can be loaded with
fsmbi.AAn immediate which can be loaded with the il/ila/ilh/ilhu instructions. const_int is treated as a 32 bit value.
BAn immediate for most arithmetic instructions. const_int is treated as a 32 bit value.
CAn immediate for and/xor/or instructions. const_int is treated as a 32 bit value.
DAn immediate for the
iohlinstruction. const_int is treated as a 32 bit value.IA constant in the range [-64, 63] for shift/rotate instructions.
JAn unsigned 7-bit constant for conversion/nop/channel instructions.
KA signed 10-bit constant for most arithmetic instructions.
MA signed 16 bit immediate for
stop.NAn unsigned 16-bit constant for
iohlandfsmbi.OAn unsigned 7-bit constant whose 3 least significant bits are 0.
PAn unsigned 3-bit constant for 16-byte rotates and shifts
RCall operand, reg, for indirect calls
SCall operand, symbol, for relative calls.
TCall operand, const_int, for absolute calls.
UAn immediate which can be loaded with the il/ila/ilh/ilhu instructions. const_int is sign extended to 128 bit.
WAn immediate for shift and rotate instructions. const_int is treated as a 32 bit value.
YAn immediate for and/xor/or instructions. const_int is sign extended as a 128 bit.
ZAn immediate for the
iohlinstruction. const_int is sign extended to 128 bit.
- S/390 and zSeries—‘config/s390/s390.h’
aAddress register (general purpose register except r0)
cCondition code register
dData register (arbitrary general purpose register)
fFloating-point register
IUnsigned 8-bit constant (0–255)
JUnsigned 12-bit constant (0–4095)
KSigned 16-bit constant (-32768–32767)
LValue appropriate as displacement.
(0..4095)for short displacement
(-524288..524287)for long displacement
MConstant integer with a value of 0x7fffffff.
NMultiple letter constraint followed by 4 parameter letters.
0..9:number of the part counting from most to least significant
H,Q:mode of the part
D,S,H:mode of the containing operand
0,F:value of the other parts (F—all bits set)
The constraint matches if the specified part of a constant has a value different from its other parts.
QMemory reference without index register and with short displacement.
RMemory reference with index register and short displacement.
SMemory reference without index register but with long displacement.
TMemory reference with index register and long displacement.
UPointer with short displacement.
WPointer with long displacement.
YShift count operand.
- Score family—‘config/score/score.h’
dRegisters from r0 to r32.
eRegisters from r0 to r16.
tr8—r11 or r22—r27 registers.
hhi register.
llo register.
xhi + lo register.
qcnt register.
ylcb register.
zscb register.
acnt + lcb + scb register.
ccr0—cr15 register.
bcp1 registers.
fcp2 registers.
icp3 registers.
jcp1 + cp2 + cp3 registers.
IHigh 16-bit constant (32-bit constant with 16 LSBs zero).
JUnsigned 5 bit integer (in the range 0 to 31).
KUnsigned 16 bit integer (in the range 0 to 65535).
LSigned 16 bit integer (in the range -32768 to 32767).
MUnsigned 14 bit integer (in the range 0 to 16383).
NSigned 14 bit integer (in the range -8192 to 8191).
ZAny SYMBOL_REF.
- Xstormy16—‘config/stormy16/stormy16.h’
aRegister r0.
bRegister r1.
cRegister r2.
dRegister r8.
eRegisters r0 through r7.
tRegisters r0 and r1.
yThe carry register.
zRegisters r8 and r9.
IA constant between 0 and 3 inclusive.
JA constant that has exactly one bit set.
KA constant that has exactly one bit clear.
LA constant between 0 and 255 inclusive.
MA constant between -255 and 0 inclusive.
NA constant between -3 and 0 inclusive.
OA constant between 1 and 4 inclusive.
PA constant between -4 and -1 inclusive.
QA memory reference that is a stack push.
RA memory reference that is a stack pop.
SA memory reference that refers to a constant address of known value.
TThe register indicated by Rx (not implemented yet).
UA constant that is not between 2 and 15 inclusive.
ZThe constant 0.
- TI C6X family—‘config/c6x/constraints.md’
aRegister file A (A0–A31).
bRegister file B (B0–B31).
APredicate registers in register file A (A0–A2 on C64X and higher, A1 and A2 otherwise).
BPredicate registers in register file B (B0–B2).
CA call-used register in register file B (B0–B9, B16–B31).
DaRegister file A, excluding predicate registers (A3–A31, plus A0 if not C64X or higher).
DbRegister file B, excluding predicate registers (B3–B31).
Iu4Integer constant in the range 0 … 15.
Iu5Integer constant in the range 0 … 31.
In5Integer constant in the range -31 … 0.
Is5Integer constant in the range -16 … 15.
I5xInteger constant that can be the operand of an ADDA or a SUBA insn.
IuBInteger constant in the range 0 … 65535.
IsBInteger constant in the range -32768 … 32767.
IsCInteger constant in the range -2^{20} … 2^{20} - 1.
JcInteger constant that is a valid mask for the clr instruction.
JsInteger constant that is a valid mask for the set instruction.
QMemory location with A base register.
RMemory location with B base register.
ZRegister B14 (aka DP).
- TILE-Gx—‘config/tilegx/constraints.md’
R00R01R02R03R04R05R06R07R08R09R10Each of these represents a register constraint for an individual register, from r0 to r10.
ISigned 8-bit integer constant.
JSigned 16-bit integer constant.
KUnsigned 16-bit integer constant.
LInteger constant that fits in one signed byte when incremented by one (-129 … 126).
mMemory operand. If used together with ‘<’ or ‘>’, the operand can have postincrement which requires printing with ‘%In’ and ‘%in’ on TILE-Gx. For example:
asm ("st_add %I0,%1,%i0" : "=m<>" (*mem) : "r" (val));MA bit mask suitable for the BFINS instruction.
NInteger constant that is a byte tiled out eight times.
OThe integer zero constant.
PInteger constant that is a sign-extended byte tiled out as four shorts.
QInteger constant that fits in one signed byte when incremented (-129 … 126), but excluding -1.
SInteger constant that has all 1 bits consecutive and starting at bit 0.
TA 16-bit fragment of a got, tls, or pc-relative reference.
UMemory operand except postincrement. This is roughly the same as ‘m’ when not used together with ‘<’ or ‘>’.
WAn 8-element vector constant with identical elements.
YA 4-element vector constant with identical elements.
Z0The integer constant 0xffffffff.
Z1The integer constant 0xffffffff00000000.
- TILEPro—‘config/tilepro/constraints.md’
R00R01R02R03R04R05R06R07R08R09R10Each of these represents a register constraint for an individual register, from r0 to r10.
ISigned 8-bit integer constant.
JSigned 16-bit integer constant.
KNonzero integer constant with low 16 bits zero.
LInteger constant that fits in one signed byte when incremented by one (-129 … 126).
mMemory operand. If used together with ‘<’ or ‘>’, the operand can have postincrement which requires printing with ‘%In’ and ‘%in’ on TILEPro. For example:
asm ("swadd %I0,%1,%i0" : "=m<>" (mem) : "r" (val));MA bit mask suitable for the MM instruction.
NInteger constant that is a byte tiled out four times.
OThe integer zero constant.
PInteger constant that is a sign-extended byte tiled out as two shorts.
QInteger constant that fits in one signed byte when incremented (-129 … 126), but excluding -1.
TA symbolic operand, or a 16-bit fragment of a got, tls, or pc-relative reference.
UMemory operand except postincrement. This is roughly the same as ‘m’ when not used together with ‘<’ or ‘>’.
WA 4-element vector constant with identical elements.
YA 2-element vector constant with identical elements.
- Xtensa—‘config/xtensa/constraints.md’
aGeneral-purpose 32-bit register
bOne-bit boolean register
AMAC16 40-bit accumulator register
ISigned 12-bit integer constant, for use in MOVI instructions
JSigned 8-bit integer constant, for use in ADDI instructions
KInteger constant valid for BccI instructions
LUnsigned constant valid for BccUI instructions
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on October 19, 2013 using texi2html 5.0.
