Commit b745f81b authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Remove ia32_x87_attr_t from nodes, which do not need it.

Many x87 nodes do not need the x87-specific attributes.
parent 4cb2dab3
...@@ -919,7 +919,6 @@ NoReg_FP => { ...@@ -919,7 +919,6 @@ NoReg_FP => {
reg_req => { out => [ "fp_NOREG:I" ] }, reg_req => { out => [ "fp_NOREG:I" ] },
mode => $mode_fp87, mode => $mode_fp87,
latency => 0, latency => 0,
attr_type => "ia32_x87_attr_t",
}, },
NoReg_XMM => { NoReg_XMM => {
...@@ -1842,10 +1841,9 @@ fabs => { ...@@ -1842,10 +1841,9 @@ fabs => {
reg_req => { in => [ "fp" ], out => [ "fp" ] }, reg_req => { in => [ "fp" ], out => [ "fp" ] },
ins => [ "value" ], ins => [ "value" ],
emit => "fabs", emit => "fabs",
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 2, latency => 2,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fchs => { fchs => {
...@@ -1853,10 +1851,9 @@ fchs => { ...@@ -1853,10 +1851,9 @@ fchs => {
reg_req => { in => [ "fp" ], out => [ "fp" ] }, reg_req => { in => [ "fp" ], out => [ "fp" ] },
ins => [ "value" ], ins => [ "value" ],
emit => "fchs", emit => "fchs",
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 2, latency => 2,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fld => { fld => {
...@@ -1869,9 +1866,8 @@ fld => { ...@@ -1869,9 +1866,8 @@ fld => {
outs => [ "res", "unused", "M", "X_regular", "X_except" ], outs => [ "res", "unused", "M", "X_regular", "X_except" ],
emit => "fld%FM %AM", emit => "fld%FM %AM",
attr => "ir_mode *load_mode", attr => "ir_mode *load_mode",
init_attr => "attr->attr.ls_mode = load_mode;", init_attr => "attr->ls_mode = load_mode;",
latency => 2, latency => 2,
attr_type => "ia32_x87_attr_t",
}, },
fst => { fst => {
...@@ -1897,7 +1893,6 @@ fild => { ...@@ -1897,7 +1893,6 @@ fild => {
ins => [ "base", "index", "mem" ], ins => [ "base", "index", "mem" ],
emit => "fild%FM %AM", emit => "fild%FM %AM",
latency => 4, latency => 4,
attr_type => "ia32_x87_attr_t",
}, },
fist => { fist => {
...@@ -1931,10 +1926,9 @@ fldz => { ...@@ -1931,10 +1926,9 @@ fldz => {
reg_req => { out => [ "fp" ] }, reg_req => { out => [ "fp" ] },
outs => [ "res" ], outs => [ "res" ],
emit => "fldz", emit => "fldz",
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 4, latency => 4,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fld1 => { fld1 => {
...@@ -1943,10 +1937,9 @@ fld1 => { ...@@ -1943,10 +1937,9 @@ fld1 => {
reg_req => { out => [ "fp" ] }, reg_req => { out => [ "fp" ] },
outs => [ "res" ], outs => [ "res" ],
emit => "fld1", emit => "fld1",
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 4, latency => 4,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fldpi => { fldpi => {
...@@ -1955,10 +1948,9 @@ fldpi => { ...@@ -1955,10 +1948,9 @@ fldpi => {
reg_req => { out => [ "fp" ] }, reg_req => { out => [ "fp" ] },
outs => [ "res" ], outs => [ "res" ],
emit => "fldpi", emit => "fldpi",
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 4, latency => 4,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fldln2 => { fldln2 => {
...@@ -1967,10 +1959,9 @@ fldln2 => { ...@@ -1967,10 +1959,9 @@ fldln2 => {
reg_req => { out => [ "fp" ] }, reg_req => { out => [ "fp" ] },
outs => [ "res" ], outs => [ "res" ],
emit => "fldln2", emit => "fldln2",
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 4, latency => 4,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fldlg2 => { fldlg2 => {
...@@ -1979,10 +1970,9 @@ fldlg2 => { ...@@ -1979,10 +1970,9 @@ fldlg2 => {
reg_req => { out => [ "fp" ] }, reg_req => { out => [ "fp" ] },
emit => "fldlg2", emit => "fldlg2",
outs => [ "res" ], outs => [ "res" ],
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 4, latency => 4,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fldl2t => { fldl2t => {
...@@ -1991,10 +1981,9 @@ fldl2t => { ...@@ -1991,10 +1981,9 @@ fldl2t => {
reg_req => { out => [ "fp" ] }, reg_req => { out => [ "fp" ] },
emit => "fldll2t", emit => "fldll2t",
outs => [ "res" ], outs => [ "res" ],
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 4, latency => 4,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
fldl2e => { fldl2e => {
...@@ -2003,10 +1992,9 @@ fldl2e => { ...@@ -2003,10 +1992,9 @@ fldl2e => {
reg_req => { out => [ "fp" ] }, reg_req => { out => [ "fp" ] },
emit => "fldl2e", emit => "fldl2e",
outs => [ "res" ], outs => [ "res" ],
init_attr => "attr->attr.ls_mode = ia32_mode_E;", init_attr => "attr->ls_mode = ia32_mode_E;",
latency => 4, latency => 4,
mode => $mode_fp87, mode => $mode_fp87,
attr_type => "ia32_x87_attr_t",
}, },
FucomFnstsw => { FucomFnstsw => {
...@@ -2062,9 +2050,8 @@ FtstFnstsw => { ...@@ -2062,9 +2050,8 @@ FtstFnstsw => {
emit => "ftst\n". emit => "ftst\n".
"fnstsw %%ax", "fnstsw %%ax",
attr => "bool ins_permuted", attr => "bool ins_permuted",
init_attr => "attr->attr.ins_permuted = ins_permuted;", init_attr => "attr->ins_permuted = ins_permuted;",
latency => 3, latency => 3,
attr_type => "ia32_x87_attr_t",
mode => $mode_gp mode => $mode_gp
}, },
...@@ -2135,7 +2122,6 @@ emms => { ...@@ -2135,7 +2122,6 @@ emms => {
reg_req => { out => [ "none" ] }, reg_req => { out => [ "none" ] },
attrs_equal => "attrs_equal_false", attrs_equal => "attrs_equal_false",
emit => "emms", emit => "emms",
attr_type => "ia32_x87_attr_t",
mode => "mode_ANY", mode => "mode_ANY",
latency => 3, latency => 3,
}, },
...@@ -2145,7 +2131,6 @@ femms => { ...@@ -2145,7 +2131,6 @@ femms => {
reg_req => { out => [ "none" ] }, reg_req => { out => [ "none" ] },
attrs_equal => "attrs_equal_false", attrs_equal => "attrs_equal_false",
emit => "femms", emit => "femms",
attr_type => "ia32_x87_attr_t",
mode => "mode_ANY", mode => "mode_ANY",
latency => 3, latency => 3,
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment