optabs.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. /* Definitions for code generation pass of GNU compiler.
  2. Copyright (C) 2001-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3, or (at your option)
  7. any later version.
  8. GCC is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_OPTABS_H
  16. #define GCC_OPTABS_H
  17. #include "insn-opinit.h"
  18. /* Generate code for a widening multiply. */
  19. extern rtx expand_widening_mult (machine_mode, rtx, rtx, rtx, int, optab);
  20. /* Return the insn used to implement mode MODE of OP, or CODE_FOR_nothing
  21. if the target does not have such an insn. */
  22. static inline enum insn_code
  23. optab_handler (optab op, machine_mode mode)
  24. {
  25. unsigned scode = (op << 16) | mode;
  26. gcc_assert (op > LAST_CONV_OPTAB);
  27. return raw_optab_handler (scode);
  28. }
  29. /* Return the insn used to perform conversion OP from mode FROM_MODE
  30. to mode TO_MODE; return CODE_FOR_nothing if the target does not have
  31. such an insn. */
  32. static inline enum insn_code
  33. convert_optab_handler (convert_optab op, machine_mode to_mode,
  34. machine_mode from_mode)
  35. {
  36. unsigned scode = (op << 16) | (from_mode << 8) | to_mode;
  37. gcc_assert (op > unknown_optab && op <= LAST_CONV_OPTAB);
  38. return raw_optab_handler (scode);
  39. }
  40. /* Return the insn used to implement mode MODE of OP, or CODE_FOR_nothing
  41. if the target does not have such an insn. */
  42. static inline enum insn_code
  43. direct_optab_handler (direct_optab op, machine_mode mode)
  44. {
  45. return optab_handler (op, mode);
  46. }
  47. /* Return true if UNOPTAB is for a trapping-on-overflow operation. */
  48. static inline bool
  49. trapv_unoptab_p (optab unoptab)
  50. {
  51. return (unoptab == negv_optab
  52. || unoptab == absv_optab);
  53. }
  54. /* Return true if BINOPTAB is for a trapping-on-overflow operation. */
  55. static inline bool
  56. trapv_binoptab_p (optab binoptab)
  57. {
  58. return (binoptab == addv_optab
  59. || binoptab == subv_optab
  60. || binoptab == smulv_optab);
  61. }
  62. /* Describes an instruction that inserts or extracts a bitfield. */
  63. struct extraction_insn
  64. {
  65. /* The code of the instruction. */
  66. enum insn_code icode;
  67. /* The mode that the structure operand should have. This is byte_mode
  68. when using the legacy insv, extv and extzv patterns to access memory. */
  69. machine_mode struct_mode;
  70. /* The mode of the field to be inserted or extracted, and by extension
  71. the mode of the insertion or extraction itself. */
  72. machine_mode field_mode;
  73. /* The mode of the field's bit position. This is only important
  74. when the position is variable rather than constant. */
  75. machine_mode pos_mode;
  76. };
  77. /* Describes the type of an expand_operand. Each value is associated
  78. with a create_*_operand function; see the comments above those
  79. functions for details. */
  80. enum expand_operand_type {
  81. EXPAND_FIXED,
  82. EXPAND_OUTPUT,
  83. EXPAND_INPUT,
  84. EXPAND_CONVERT_TO,
  85. EXPAND_CONVERT_FROM,
  86. EXPAND_ADDRESS,
  87. EXPAND_INTEGER
  88. };
  89. /* Information about an operand for instruction expansion. */
  90. struct expand_operand {
  91. /* The type of operand. */
  92. ENUM_BITFIELD (expand_operand_type) type : 8;
  93. /* True if any conversion should treat VALUE as being unsigned
  94. rather than signed. Only meaningful for certain types. */
  95. unsigned int unsigned_p : 1;
  96. /* Unused; available for future use. */
  97. unsigned int unused : 7;
  98. /* The mode passed to the convert_*_operand function. It has a
  99. type-dependent meaning. */
  100. ENUM_BITFIELD (machine_mode) mode : 16;
  101. /* The value of the operand. */
  102. rtx value;
  103. };
  104. /* Initialize OP with the given fields. Initialise the other fields
  105. to their default values. */
  106. static inline void
  107. create_expand_operand (struct expand_operand *op,
  108. enum expand_operand_type type,
  109. rtx value, machine_mode mode,
  110. bool unsigned_p)
  111. {
  112. op->type = type;
  113. op->unsigned_p = unsigned_p;
  114. op->unused = 0;
  115. op->mode = mode;
  116. op->value = value;
  117. }
  118. /* Make OP describe an operand that must use rtx X, even if X is volatile. */
  119. static inline void
  120. create_fixed_operand (struct expand_operand *op, rtx x)
  121. {
  122. create_expand_operand (op, EXPAND_FIXED, x, VOIDmode, false);
  123. }
  124. /* Make OP describe an output operand that must have mode MODE.
  125. X, if nonnull, is a suggestion for where the output should be stored.
  126. It is OK for VALUE to be inconsistent with MODE, although it will just
  127. be ignored in that case. */
  128. static inline void
  129. create_output_operand (struct expand_operand *op, rtx x,
  130. machine_mode mode)
  131. {
  132. create_expand_operand (op, EXPAND_OUTPUT, x, mode, false);
  133. }
  134. /* Make OP describe an input operand that must have mode MODE and
  135. value VALUE; MODE cannot be VOIDmode. The backend may request that
  136. VALUE be copied into a different kind of rtx before being passed
  137. as an operand. */
  138. static inline void
  139. create_input_operand (struct expand_operand *op, rtx value,
  140. machine_mode mode)
  141. {
  142. create_expand_operand (op, EXPAND_INPUT, value, mode, false);
  143. }
  144. /* Like create_input_operand, except that VALUE must first be converted
  145. to mode MODE. UNSIGNED_P says whether VALUE is unsigned. */
  146. static inline void
  147. create_convert_operand_to (struct expand_operand *op, rtx value,
  148. machine_mode mode, bool unsigned_p)
  149. {
  150. create_expand_operand (op, EXPAND_CONVERT_TO, value, mode, unsigned_p);
  151. }
  152. /* Make OP describe an input operand that should have the same value
  153. as VALUE, after any mode conversion that the backend might request.
  154. If VALUE is a CONST_INT, it should be treated as having mode MODE.
  155. UNSIGNED_P says whether VALUE is unsigned. */
  156. static inline void
  157. create_convert_operand_from (struct expand_operand *op, rtx value,
  158. machine_mode mode, bool unsigned_p)
  159. {
  160. create_expand_operand (op, EXPAND_CONVERT_FROM, value, mode, unsigned_p);
  161. }
  162. /* Make OP describe an input Pmode address operand. VALUE is the value
  163. of the address, but it may need to be converted to Pmode first. */
  164. static inline void
  165. create_address_operand (struct expand_operand *op, rtx value)
  166. {
  167. create_expand_operand (op, EXPAND_ADDRESS, value, Pmode, false);
  168. }
  169. /* Make OP describe an input operand that has value INTVAL and that has
  170. no inherent mode. This function should only be used for operands that
  171. are always expand-time constants. The backend may request that INTVAL
  172. be copied into a different kind of rtx, but it must specify the mode
  173. of that rtx if so. */
  174. static inline void
  175. create_integer_operand (struct expand_operand *op, HOST_WIDE_INT intval)
  176. {
  177. create_expand_operand (op, EXPAND_INTEGER, GEN_INT (intval), VOIDmode, false);
  178. }
  179. extern rtx convert_optab_libfunc (convert_optab optab, machine_mode mode1,
  180. machine_mode mode2);
  181. extern rtx optab_libfunc (optab optab, machine_mode mode);
  182. extern enum insn_code widening_optab_handler (optab, machine_mode,
  183. machine_mode);
  184. /* Find a widening optab even if it doesn't widen as much as we want. */
  185. #define find_widening_optab_handler(A,B,C,D) \
  186. find_widening_optab_handler_and_mode (A, B, C, D, NULL)
  187. extern enum insn_code find_widening_optab_handler_and_mode (optab,
  188. machine_mode,
  189. machine_mode,
  190. int,
  191. machine_mode *);
  192. /* An extra flag to control optab_for_tree_code's behavior. This is needed to
  193. distinguish between machines with a vector shift that takes a scalar for the
  194. shift amount vs. machines that take a vector for the shift amount. */
  195. enum optab_subtype
  196. {
  197. optab_default,
  198. optab_scalar,
  199. optab_vector
  200. };
  201. /* Passed to expand_simple_binop and expand_binop to say which options
  202. to try to use if the requested operation can't be open-coded on the
  203. requisite mode. Either OPTAB_LIB or OPTAB_LIB_WIDEN says try using
  204. a library call. Either OPTAB_WIDEN or OPTAB_LIB_WIDEN says try
  205. using a wider mode. OPTAB_MUST_WIDEN says try widening and don't
  206. try anything else. */
  207. enum optab_methods
  208. {
  209. OPTAB_DIRECT,
  210. OPTAB_LIB,
  211. OPTAB_WIDEN,
  212. OPTAB_LIB_WIDEN,
  213. OPTAB_MUST_WIDEN
  214. };
  215. /* Return the optab used for computing the given operation on the type given by
  216. the second argument. The third argument distinguishes between the types of
  217. vector shifts and rotates */
  218. extern optab optab_for_tree_code (enum tree_code, const_tree, enum optab_subtype);
  219. /* Given an optab that reduces a vector to a scalar, find instead the old
  220. optab that produces a vector with the reduction result in one element,
  221. for a tree with the specified type. */
  222. extern optab scalar_reduc_to_vector (optab, const_tree type);
  223. extern rtx expand_widen_pattern_expr (struct separate_ops *, rtx , rtx , rtx,
  224. rtx, int);
  225. extern rtx expand_ternary_op (machine_mode mode, optab ternary_optab,
  226. rtx op0, rtx op1, rtx op2, rtx target,
  227. int unsignedp);
  228. extern rtx simplify_expand_binop (machine_mode mode, optab binoptab,
  229. rtx op0, rtx op1, rtx target, int unsignedp,
  230. enum optab_methods methods);
  231. extern bool force_expand_binop (machine_mode, optab, rtx, rtx, rtx, int,
  232. enum optab_methods);
  233. /* Generate code for a simple binary or unary operation. "Simple" in
  234. this case means "can be unambiguously described by a (mode, code)
  235. pair and mapped to a single optab." */
  236. extern rtx expand_simple_binop (machine_mode, enum rtx_code, rtx,
  237. rtx, rtx, int, enum optab_methods);
  238. /* Expand a binary operation given optab and rtx operands. */
  239. extern rtx expand_binop (machine_mode, optab, rtx, rtx, rtx, int,
  240. enum optab_methods);
  241. /* Expand a binary operation with both signed and unsigned forms. */
  242. extern rtx sign_expand_binop (machine_mode, optab, optab, rtx, rtx,
  243. rtx, int, enum optab_methods);
  244. /* Generate code to perform an operation on one operand with two results. */
  245. extern int expand_twoval_unop (optab, rtx, rtx, rtx, int);
  246. /* Generate code to perform an operation on two operands with two results. */
  247. extern int expand_twoval_binop (optab, rtx, rtx, rtx, rtx, int);
  248. /* Generate code to perform an operation on two operands with two
  249. results, using a library function. */
  250. extern bool expand_twoval_binop_libfunc (optab, rtx, rtx, rtx, rtx,
  251. enum rtx_code);
  252. extern rtx expand_simple_unop (machine_mode, enum rtx_code, rtx, rtx,
  253. int);
  254. /* Expand a unary arithmetic operation given optab rtx operand. */
  255. extern rtx expand_unop (machine_mode, optab, rtx, rtx, int);
  256. /* Expand the absolute value operation. */
  257. extern rtx expand_abs_nojump (machine_mode, rtx, rtx, int);
  258. extern rtx expand_abs (machine_mode, rtx, rtx, int, int);
  259. /* Expand the one's complement absolute value operation. */
  260. extern rtx expand_one_cmpl_abs_nojump (machine_mode, rtx, rtx);
  261. /* Expand the copysign operation. */
  262. extern rtx expand_copysign (rtx, rtx, rtx);
  263. /* Generate an instruction with a given INSN_CODE with an output and
  264. an input. */
  265. extern bool maybe_emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
  266. extern void emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
  267. /* Emit code to make a call to a constant function or a library call. */
  268. extern void emit_libcall_block (rtx, rtx, rtx, rtx);
  269. /* The various uses that a comparison can have; used by can_compare_p:
  270. jumps, conditional moves, store flag operations. */
  271. enum can_compare_purpose
  272. {
  273. ccp_jump,
  274. ccp_cmov,
  275. ccp_store_flag
  276. };
  277. /* Nonzero if a compare of mode MODE can be done straightforwardly
  278. (without splitting it into pieces). */
  279. extern int can_compare_p (enum rtx_code, machine_mode,
  280. enum can_compare_purpose);
  281. extern rtx prepare_operand (enum insn_code, rtx, int, machine_mode,
  282. machine_mode, int);
  283. /* Emit a pair of rtl insns to compare two rtx's and to jump
  284. to a label if the comparison is true. */
  285. extern void emit_cmp_and_jump_insns (rtx, rtx, enum rtx_code, rtx,
  286. machine_mode, int, rtx, int prob=-1);
  287. /* Generate code to indirectly jump to a location given in the rtx LOC. */
  288. extern void emit_indirect_jump (rtx);
  289. #include "insn-config.h"
  290. #ifndef GCC_INSN_CONFIG_H
  291. #error "insn-config.h must be included before optabs.h"
  292. #endif
  293. #ifdef HAVE_conditional_move
  294. /* Emit a conditional move operation. */
  295. rtx emit_conditional_move (rtx, enum rtx_code, rtx, rtx, machine_mode,
  296. rtx, rtx, machine_mode, int);
  297. /* Return nonzero if the conditional move is supported. */
  298. int can_conditionally_move_p (machine_mode mode);
  299. #endif
  300. rtx emit_conditional_add (rtx, enum rtx_code, rtx, rtx, machine_mode,
  301. rtx, rtx, machine_mode, int);
  302. /* Create but don't emit one rtl instruction to perform certain operations.
  303. Modes must match; operands must meet the operation's predicates.
  304. Likewise for subtraction and for just copying. */
  305. extern rtx gen_add2_insn (rtx, rtx);
  306. extern rtx gen_add3_insn (rtx, rtx, rtx);
  307. extern int have_add2_insn (rtx, rtx);
  308. extern rtx gen_addptr3_insn (rtx, rtx, rtx);
  309. extern int have_addptr3_insn (rtx, rtx, rtx);
  310. extern rtx gen_sub2_insn (rtx, rtx);
  311. extern rtx gen_sub3_insn (rtx, rtx, rtx);
  312. extern int have_sub2_insn (rtx, rtx);
  313. /* Return the INSN_CODE to use for an extend operation. */
  314. extern enum insn_code can_extend_p (machine_mode, machine_mode, int);
  315. /* Generate the body of an insn to extend Y (with mode MFROM)
  316. into X (with mode MTO). Do zero-extension if UNSIGNEDP is nonzero. */
  317. extern rtx gen_extend_insn (rtx, rtx, machine_mode,
  318. machine_mode, int);
  319. /* Return the insn_code for a FLOAT_EXPR. */
  320. enum insn_code can_float_p (machine_mode, machine_mode, int);
  321. /* Check whether an operation represented by the code CODE is a
  322. convert operation that is supported by the target platform in
  323. vector form */
  324. bool supportable_convert_operation (enum tree_code, tree, tree, tree *,
  325. enum tree_code *);
  326. /* Generate code for a FLOAT_EXPR. */
  327. extern void expand_float (rtx, rtx, int);
  328. /* Generate code for a FIX_EXPR. */
  329. extern void expand_fix (rtx, rtx, int);
  330. /* Generate code for a FIXED_CONVERT_EXPR. */
  331. extern void expand_fixed_convert (rtx, rtx, int, int);
  332. /* Generate code for float to integral conversion. */
  333. extern bool expand_sfix_optab (rtx, rtx, convert_optab);
  334. /* Report whether the machine description contains an insn which can
  335. perform the operation described by CODE and MODE. */
  336. extern int have_insn_for (enum rtx_code, machine_mode);
  337. extern void gen_int_libfunc (optab, const char *, char, machine_mode);
  338. extern void gen_fp_libfunc (optab, const char *, char, machine_mode);
  339. extern void gen_fixed_libfunc (optab, const char *, char, machine_mode);
  340. extern void gen_signed_fixed_libfunc (optab, const char *, char,
  341. machine_mode);
  342. extern void gen_unsigned_fixed_libfunc (optab, const char *, char,
  343. machine_mode);
  344. extern void gen_int_fp_libfunc (optab, const char *, char, machine_mode);
  345. extern void gen_intv_fp_libfunc (optab, const char *, char, machine_mode);
  346. extern void gen_int_fp_fixed_libfunc (optab, const char *, char,
  347. machine_mode);
  348. extern void gen_int_fp_signed_fixed_libfunc (optab, const char *, char,
  349. machine_mode);
  350. extern void gen_int_fixed_libfunc (optab, const char *, char,
  351. machine_mode);
  352. extern void gen_int_signed_fixed_libfunc (optab, const char *, char,
  353. machine_mode);
  354. extern void gen_int_unsigned_fixed_libfunc (optab, const char *, char,
  355. machine_mode);
  356. extern void gen_interclass_conv_libfunc (convert_optab, const char *,
  357. machine_mode, machine_mode);
  358. extern void gen_int_to_fp_conv_libfunc (convert_optab, const char *,
  359. machine_mode, machine_mode);
  360. extern void gen_ufloat_conv_libfunc (convert_optab, const char *,
  361. machine_mode, machine_mode);
  362. extern void gen_int_to_fp_nondecimal_conv_libfunc (convert_optab,
  363. const char *,
  364. machine_mode,
  365. machine_mode);
  366. extern void gen_fp_to_int_conv_libfunc (convert_optab, const char *,
  367. machine_mode, machine_mode);
  368. extern void gen_intraclass_conv_libfunc (convert_optab, const char *,
  369. machine_mode, machine_mode);
  370. extern void gen_trunc_conv_libfunc (convert_optab, const char *,
  371. machine_mode, machine_mode);
  372. extern void gen_extend_conv_libfunc (convert_optab, const char *,
  373. machine_mode, machine_mode);
  374. extern void gen_fract_conv_libfunc (convert_optab, const char *,
  375. machine_mode, machine_mode);
  376. extern void gen_fractuns_conv_libfunc (convert_optab, const char *,
  377. machine_mode, machine_mode);
  378. extern void gen_satfract_conv_libfunc (convert_optab, const char *,
  379. machine_mode, machine_mode);
  380. extern void gen_satfractuns_conv_libfunc (convert_optab, const char *,
  381. machine_mode,
  382. machine_mode);
  383. /* Build a decl for a libfunc named NAME. */
  384. extern tree build_libfunc_function (const char *);
  385. /* Call this to initialize an optab function entry. */
  386. extern rtx init_one_libfunc (const char *);
  387. extern rtx set_user_assembler_libfunc (const char *, const char *);
  388. /* Call this to reset the function entry for one optab. */
  389. extern void set_optab_libfunc (optab, machine_mode, const char *);
  390. extern void set_conv_libfunc (convert_optab, machine_mode,
  391. machine_mode, const char *);
  392. /* Call this once to initialize the contents of the optabs
  393. appropriately for the current target machine. */
  394. extern void init_optabs (void);
  395. extern void init_tree_optimization_optabs (tree);
  396. /* Call this to install all of the __sync libcalls up to size MAX. */
  397. extern void init_sync_libfuncs (int max);
  398. /* Generate a conditional trap instruction. */
  399. extern rtx gen_cond_trap (enum rtx_code, rtx, rtx, rtx);
  400. /* Return true if target supports vector operations for VEC_PERM_EXPR. */
  401. extern bool can_vec_perm_p (machine_mode, bool, const unsigned char *);
  402. /* Generate code for VEC_PERM_EXPR. */
  403. extern rtx expand_vec_perm (machine_mode, rtx, rtx, rtx, rtx);
  404. /* Return tree if target supports vector operations for COND_EXPR. */
  405. bool expand_vec_cond_expr_p (tree, tree);
  406. /* Generate code for VEC_COND_EXPR. */
  407. extern rtx expand_vec_cond_expr (tree, tree, tree, tree, rtx);
  408. /* Return non-zero if target supports a given highpart multiplication. */
  409. extern int can_mult_highpart_p (machine_mode, bool);
  410. /* Generate code for MULT_HIGHPART_EXPR. */
  411. extern rtx expand_mult_highpart (machine_mode, rtx, rtx, rtx, bool);
  412. /* Return true if target supports vector masked load/store for mode. */
  413. extern bool can_vec_mask_load_store_p (machine_mode, bool);
  414. /* Return true if there is an inline compare and swap pattern. */
  415. extern bool can_compare_and_swap_p (machine_mode, bool);
  416. /* Return true if there is an inline atomic exchange pattern. */
  417. extern bool can_atomic_exchange_p (machine_mode, bool);
  418. extern rtx expand_sync_lock_test_and_set (rtx, rtx, rtx);
  419. extern rtx expand_atomic_test_and_set (rtx, rtx, enum memmodel);
  420. extern rtx expand_atomic_exchange (rtx, rtx, rtx, enum memmodel);
  421. extern bool expand_atomic_compare_and_swap (rtx *, rtx *, rtx, rtx, rtx, bool,
  422. enum memmodel, enum memmodel);
  423. /* Generate memory barriers. */
  424. extern void expand_mem_thread_fence (enum memmodel);
  425. extern void expand_mem_signal_fence (enum memmodel);
  426. rtx expand_atomic_load (rtx, rtx, enum memmodel);
  427. rtx expand_atomic_store (rtx, rtx, enum memmodel, bool);
  428. rtx expand_atomic_fetch_op (rtx, rtx, rtx, enum rtx_code, enum memmodel,
  429. bool);
  430. extern bool insn_operand_matches (enum insn_code icode, unsigned int opno,
  431. rtx operand);
  432. extern bool valid_multiword_target_p (rtx);
  433. extern void create_convert_operand_from_type (struct expand_operand *op,
  434. rtx value, tree type);
  435. extern bool maybe_legitimize_operands (enum insn_code icode,
  436. unsigned int opno, unsigned int nops,
  437. struct expand_operand *ops);
  438. extern rtx maybe_gen_insn (enum insn_code icode, unsigned int nops,
  439. struct expand_operand *ops);
  440. extern bool maybe_expand_insn (enum insn_code icode, unsigned int nops,
  441. struct expand_operand *ops);
  442. extern bool maybe_expand_jump_insn (enum insn_code icode, unsigned int nops,
  443. struct expand_operand *ops);
  444. extern void expand_insn (enum insn_code icode, unsigned int nops,
  445. struct expand_operand *ops);
  446. extern void expand_jump_insn (enum insn_code icode, unsigned int nops,
  447. struct expand_operand *ops);
  448. /* Enumerates the possible extraction_insn operations. */
  449. enum extraction_pattern { EP_insv, EP_extv, EP_extzv };
  450. extern bool get_best_reg_extraction_insn (extraction_insn *,
  451. enum extraction_pattern,
  452. unsigned HOST_WIDE_INT,
  453. machine_mode);
  454. extern bool get_best_mem_extraction_insn (extraction_insn *,
  455. enum extraction_pattern,
  456. HOST_WIDE_INT, HOST_WIDE_INT,
  457. machine_mode);
  458. extern bool lshift_cheap_p (bool);
  459. extern enum rtx_code get_rtx_code (enum tree_code tcode, bool unsignedp);
  460. #endif /* GCC_OPTABS_H */