This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Thanks. It seems work now. But... when I define the like insn for QImode, (define_insn "loadqi_men" [(set (match_operand:QI 0 "register_operand" "=r") (mem:QI (match_operand:SI 1 "general_operand" "r")))] "" "lbu.u\t%0,0(%1)" )
The compiler comes out such error, error: insn does not satisfy its constraints (insn 349 53 46 4 ../../gcc-3.4.4/gcc/unwind-pe.h:212 (set (reg:QI 1 $1) (mem/s:QI (plus:SI (reg/v/f:SI 9 $9 [orig:154 p ] [154]) (const_int 1 [0x1])) [12 S1 A8])) 45 {} (nil) (nil))
Well, it seems not work.
An operand that is a valid memory address is allowed. This is for "load address" and "push address" instructions.
`p' in the constraint must be accompanied by `address_operand' as the predicate in the `match_operand'. This predicate interprets the mode specified in the `match_operand' as the mode of the memory reference for which the address would be valid.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |