-/* costs for the Core */
-static const insn_const core_cost = {
- 1, /* cost of an add instruction */
- 1, /* cost of a lea instruction */
- 1, /* cost of a constant shift instruction */
- 10, /* starting cost of a multiply instruction */
+/* costs for the Pentium 4 nocona */
+static const insn_const nocona_cost = {
+ COSTS_INSNS(1), /* cost of an add instruction */
+ COSTS_INSNS(1), /* cost of a lea instruction */
+ COSTS_INSNS(1), /* cost of a constant shift instruction */
+ COSTS_INSNS(10), /* starting cost of a multiply instruction */
+ 0 /* cost of multiply for every set bit */
+};
+
+/* costs for the Core2 */
+static const insn_const core2_cost = {
+ COSTS_INSNS(1), /* cost of an add instruction */
+ COSTS_INSNS(1) + 1, /* cost of a lea instruction */
+ COSTS_INSNS(1), /* cost of a constant shift instruction */
+ COSTS_INSNS(3), /* starting cost of a multiply instruction */