summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/builtins.c3
-rw-r--r--gcc/genopinit.c1
-rw-r--r--gcc/optabs.c1
-rw-r--r--gcc/optabs.h2
5 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 933e4e446eb..3382458f0db 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2005-03-23 Uros Bizjak <uros@kss-loka.si>
+
+ * optabs.h (enum optab_index): Remove OTI_llrint.
+ (llrint_optab): Remove macro.
+ * optabs.c (init_optabs): Remove llrint_optab initialization.
+ * genopinit.c (optabs): Remove llrint_optab implementation.
+ * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
+ using lrint_optab.
+
2005-03-24 Alexandre Oliva <aoliva@redhat.com>
PR rtl-optimization/20532
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 703fb3fceff..23bb4298884 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -1761,11 +1761,10 @@ expand_builtin_mathfn (tree exp, rtx target, rtx subtarget)
case BUILT_IN_LRINT:
case BUILT_IN_LRINTF:
case BUILT_IN_LRINTL:
- builtin_optab = lrint_optab; break;
case BUILT_IN_LLRINT:
case BUILT_IN_LLRINTF:
case BUILT_IN_LLRINTL:
- builtin_optab = llrint_optab; break;
+ builtin_optab = lrint_optab; break;
default:
gcc_unreachable ();
}
diff --git a/gcc/genopinit.c b/gcc/genopinit.c
index a71abb074d3..92b1c207544 100644
--- a/gcc/genopinit.c
+++ b/gcc/genopinit.c
@@ -125,7 +125,6 @@ static const char * const optabs[] =
"nearbyint_optab->handlers[$A].insn_code = CODE_FOR_$(nearbyint$a2$)",
"rint_optab->handlers[$A].insn_code = CODE_FOR_$(rint$a2$)",
"lrint_optab->handlers[$A].insn_code = CODE_FOR_$(lrint$a2$)",
- "llrint_optab->handlers[$A].insn_code = CODE_FOR_$(llrint$a2$)",
"sincos_optab->handlers[$A].insn_code = CODE_FOR_$(sincos$a3$)",
"sin_optab->handlers[$A].insn_code = CODE_FOR_$(sin$a2$)",
"asin_optab->handlers[$A].insn_code = CODE_FOR_$(asin$a2$)",
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 2a792857fa1..ecaff987e04 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -5039,7 +5039,6 @@ init_optabs (void)
nearbyint_optab = init_optab (UNKNOWN);
rint_optab = init_optab (UNKNOWN);
lrint_optab = init_optab (UNKNOWN);
- llrint_optab = init_optab (UNKNOWN);
sincos_optab = init_optab (UNKNOWN);
sin_optab = init_optab (UNKNOWN);
asin_optab = init_optab (UNKNOWN);
diff --git a/gcc/optabs.h b/gcc/optabs.h
index 92885643604..53958fcd7b6 100644
--- a/gcc/optabs.h
+++ b/gcc/optabs.h
@@ -192,7 +192,6 @@ enum optab_index
OTI_nearbyint,
OTI_rint,
OTI_lrint,
- OTI_llrint,
/* Tangent */
OTI_tan,
/* Inverse tangent */
@@ -320,7 +319,6 @@ extern GTY(()) optab optab_table[OTI_MAX];
#define nearbyint_optab (optab_table[OTI_nearbyint])
#define rint_optab (optab_table[OTI_rint])
#define lrint_optab (optab_table[OTI_lrint])
-#define llrint_optab (optab_table[OTI_llrint])
#define tan_optab (optab_table[OTI_tan])
#define atan_optab (optab_table[OTI_atan])
#define copysign_optab (optab_table[OTI_copysign])