diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-01-15 21:58:02 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-01-15 21:58:02 +0000 |
commit | ca9902fc32856cc08accfbaf01047dcadb4f8b9f (patch) | |
tree | d6512fbd06ee1244603b7c69b713c38dbe35bd4c /gcc/rtl.h | |
parent | 9f25e1a4c4713f696faf251ce55cfd06dc5aa84d (diff) | |
download | gcc-ca9902fc32856cc08accfbaf01047dcadb4f8b9f.tar.gz |
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h index 62a7811d07a..814068d7e0d 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1,5 +1,5 @@ /* Register Transfer Language (RTL) definitions for GNU C-Compiler - Copyright (C) 1987-1991 Free Software Foundation, Inc. + Copyright (C) 1987, 1991 Free Software Foundation, Inc. This file is part of GNU CC. @@ -649,22 +649,21 @@ extern rtx pc_rtx; extern rtx cc0_rtx; extern rtx const0_rtx; extern rtx const1_rtx; +extern rtx const2_rtx; extern rtx constm1_rtx; extern rtx const_true_rtx; -extern rtx fconst0_rtx; -extern rtx fconst1_rtx; -extern rtx fconst2_rtx; -extern rtx dconst0_rtx; -extern rtx dconst1_rtx; -extern rtx dconst2_rtx; - -/* Returns a constant 0 rtx in mode MODE. */ - -#define CONST0_RTX(MODE) \ - ((MODE == SFmode) ? fconst0_rtx \ - : ((MODE == DFmode) ? dconst0_rtx \ - : ((GET_MODE_CLASS (MODE) == MODE_INT) ? const0_rtx \ - : (abort (), NULL_RTX)))) + +extern rtx const_tiny_rtx[3][(int) MAX_MACHINE_MODE]; + +/* Returns a constant 0 rtx in mode MODE. Integer modes are treated the + same as VOIDmode. */ + +#define CONST0_RTX(MODE) (const_tiny_rtx[0][(int) (MODE)]) + +/* Likewise, for the constants 1 and 2. */ + +#define CONST1_RTX(MODE) (const_tiny_rtx[1][(int) (MODE)]) +#define CONST2_RTX(MODE) (const_tiny_rtx[2][(int) (MODE)]) /* All references to certain hard regs, except those created by allocating pseudo regs into them (when that's possible), |