Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9ccaf0a6
Commit
9ccaf0a6
authored
Sep 11, 2007
by
Ben Elliston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/spu/spu.md: Formatting fixes.
From-SVN: r128359
parent
fb27b3f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
36 deletions
+40
-36
gcc/ChangeLog
+5
-1
gcc/config/spu/spu.md
+35
-35
No files found.
gcc/ChangeLog
View file @
9ccaf0a6
2007
-
09
-
11
Ben
Elliston
<
bje
@
au
.
ibm
.
com
>
*
config
/
spu
/
spu
.
md
:
Formatting
fixes
.
2007
-
09
-
10
Janis
Johnson
<
janis187
@
us
.
ibm
.
com
>
2007
-
09
-
10
Janis
Johnson
<
janis187
@
us
.
ibm
.
com
>
*
config
/
dfp
-
bit
.
c
(
dfp_unary_func
):
Delete
.
*
config
/
dfp
-
bit
.
c
(
dfp_unary_func
):
Delete
.
...
@@ -328,7 +332,7 @@
...
@@ -328,7 +332,7 @@
vectorizable_assignment): Likewise.
vectorizable_assignment): Likewise.
(vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
(vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
Declare (make extern).
Declare (make extern).
* tree-vectorizer.c (new_stmt_vec_info): Initi
lia
ze the new field.
* tree-vectorizer.c (new_stmt_vec_info): Initi
ali
ze the new field.
(new_loop_vec_info): Likewise.
(new_loop_vec_info): Likewise.
(destroy_loop_vec_info): Free memory allocated for SLP structures.
(destroy_loop_vec_info): Free memory allocated for SLP structures.
* tree-vect-analyze.c: Include recog.h.
* tree-vect-analyze.c: Include recog.h.
gcc/config/spu/spu.md
View file @
9ccaf0a6
...
@@ -997,7 +997,7 @@
...
@@ -997,7 +997,7 @@
{
{
rtx zero = gen_reg_rtx(DImode);
rtx zero = gen_reg_rtx(DImode);
emit_move_insn(zero, GEN_INT(0));
emit_move_insn(zero, GEN_INT(0));
emit_insn(gen_subdi3(operands
[
0
]
, zero, operands
[
1
]
));
emit_insn
(gen_subdi3(operands
[
0
]
, zero, operands
[
1
]
));
DONE;
DONE;
})
})
...
@@ -1008,7 +1008,7 @@
...
@@ -1008,7 +1008,7 @@
{
{
rtx zero = gen_reg_rtx(TImode);
rtx zero = gen_reg_rtx(TImode);
emit_move_insn(zero, GEN_INT(0));
emit_move_insn(zero, GEN_INT(0));
emit_insn(gen_subti3(operands
[
0
]
, zero, operands
[
1
]
));
emit_insn
(gen_subti3(operands
[
0
]
, zero, operands
[
1
]
));
DONE;
DONE;
})
})
...
@@ -1159,22 +1159,22 @@
...
@@ -1159,22 +1159,22 @@
}
}
if (val && (val & 0xffff) == 0)
if (val && (val & 0xffff) == 0)
{
{
emit_insn(gen_mpyh_si(operands
[
0
]
, operands
[
2
]
, operands
[
1
]
));
emit_insn
(gen_mpyh_si(operands
[
0
]
, operands
[
2
]
, operands
[
1
]
));
}
}
else if (val > 0 && val < 0x10000)
else if (val > 0 && val < 0x10000)
{
{
rtx cst = satisfies_constraint_K (GEN_INT (val)) ? GEN_INT(val) : d;
rtx cst = satisfies_constraint_K (GEN_INT (val)) ? GEN_INT(val) : d;
emit_insn(gen_mpyh_si(a, operands
[
1
]
, operands
[
2
]
));
emit_insn
(gen_mpyh_si(a, operands
[
1
]
, operands
[
2
]
));
emit_insn(gen_mpyu_si(c, operands
[
1
]
, cst));
emit_insn
(gen_mpyu_si(c, operands
[
1
]
, cst));
emit_insn(gen_addsi3(operands
[
0
]
, a, c));
emit_insn
(gen_addsi3(operands
[
0
]
, a, c));
}
}
else
else
{
{
emit_insn(gen_mpyh_si(a, operands
[
1
]
, operands
[
2
]
));
emit_insn
(gen_mpyh_si(a, operands
[
1
]
, operands
[
2
]
));
emit_insn(gen_mpyh_si(b, operands
[
2
]
, operands
[
1
]
));
emit_insn
(gen_mpyh_si(b, operands
[
2
]
, operands
[
1
]
));
emit_insn(gen_mpyu_si(c, operands
[
1
]
, operands
[
2
]
));
emit_insn
(gen_mpyu_si(c, operands
[
1
]
, operands
[
2
]
));
emit_insn(gen_addsi3(d, a, b));
emit_insn
(gen_addsi3(d, a, b));
emit_insn(gen_addsi3(operands
[
0
]
, d, c));
emit_insn
(gen_addsi3(operands
[
0
]
, d, c));
}
}
DONE;
DONE;
})
})
...
@@ -1200,11 +1200,11 @@
...
@@ -1200,11 +1200,11 @@
rtx d = operands
[
6
]
;
rtx d = operands
[
6
]
;
rtx op1 = simplify_gen_subreg (V8HImode, operands
[
1
]
, V4SImode, 0);
rtx op1 = simplify_gen_subreg (V8HImode, operands
[
1
]
, V4SImode, 0);
rtx op2 = simplify_gen_subreg (V8HImode, operands
[
2
]
, V4SImode, 0);
rtx op2 = simplify_gen_subreg (V8HImode, operands
[
2
]
, V4SImode, 0);
emit_insn(gen_spu_mpyh(a, op1, op2));
emit_insn
(gen_spu_mpyh(a, op1, op2));
emit_insn(gen_spu_mpyh(b, op2, op1));
emit_insn
(gen_spu_mpyh(b, op2, op1));
emit_insn(gen_spu_mpyu(c, op1, op2));
emit_insn
(gen_spu_mpyu(c, op1, op2));
emit_insn(gen_addv4si3(d, a, b));
emit_insn
(gen_addv4si3(d, a, b));
emit_insn(gen_addv4si3(operands
[
0
]
, d, c));
emit_insn
(gen_addv4si3(operands
[
0
]
, d, c));
DONE;
DONE;
})
})
...
@@ -1620,11 +1620,11 @@
...
@@ -1620,11 +1620,11 @@
(clobber (match_dup:VSF 3))
(clobber (match_dup:VSF 3))
(clobber (match_dup:VSF 4))]
(clobber (match_dup:VSF 4))]
{
{
emit_insn(gen_frest_
<mode>
(operands
[
3
]
, operands
[
2
]
));
emit_insn
(gen_frest_
<mode>
(operands
[
3
]
, operands
[
2
]
));
emit_insn(gen_fi_
<mode>
(operands
[
3
]
, operands
[
2
]
, operands
[
3
]
));
emit_insn
(gen_fi_
<mode>
(operands
[
3
]
, operands
[
2
]
, operands
[
3
]
));
emit_insn(gen_mul
<mode>
3(operands
[
4
]
, operands
[
1
]
, operands
[
3
]
));
emit_insn
(gen_mul
<mode>
3(operands
[
4
]
, operands
[
1
]
, operands
[
3
]
));
emit_insn(gen_fnms_
<mode>
(operands
[
0
]
, operands
[
4
]
, operands
[
2
]
, operands
[
1
]
));
emit_insn
(gen_fnms_
<mode>
(operands
[
0
]
, operands
[
4
]
, operands
[
2
]
, operands
[
1
]
));
emit_insn(gen_fma_
<mode>
(operands
[
0
]
, operands
[
0
]
, operands
[
3
]
, operands
[
4
]
));
emit_insn
(gen_fma_
<mode>
(operands
[
0
]
, operands
[
0
]
, operands
[
3
]
, operands
[
4
]
));
DONE;
DONE;
})
})
...
@@ -1650,12 +1650,12 @@
...
@@ -1650,12 +1650,12 @@
{
{
emit_move_insn (operands
[
3
]
,spu_float_const(
\"
0.5
\"
,SFmode));
emit_move_insn (operands
[
3
]
,spu_float_const(
\"
0.5
\"
,SFmode));
emit_move_insn (operands
[
4
]
,spu_float_const(
\"
1.00000011920928955078125
\"
,SFmode));
emit_move_insn (operands
[
4
]
,spu_float_const(
\"
1.00000011920928955078125
\"
,SFmode));
emit_insn(gen_frsqest_sf(operands
[
2
]
,operands
[
1
]
));
emit_insn
(gen_frsqest_sf(operands
[
2
]
,operands
[
1
]
));
emit_insn(gen_fi_sf(operands
[
2
]
,operands
[
1
]
,operands
[
2
]
));
emit_insn
(gen_fi_sf(operands
[
2
]
,operands
[
1
]
,operands
[
2
]
));
emit_insn(gen_mulsf3(operands
[
5
]
,operands
[
2
]
,operands
[
1
]
));
emit_insn
(gen_mulsf3(operands
[
5
]
,operands
[
2
]
,operands
[
1
]
));
emit_insn(gen_mulsf3(operands
[
3
]
,operands
[
5
]
,operands
[
3
]
));
emit_insn
(gen_mulsf3(operands
[
3
]
,operands
[
5
]
,operands
[
3
]
));
emit_insn(gen_fnms_sf(operands
[
4
]
,operands
[
2
]
,operands
[
5
]
,operands
[
4
]
));
emit_insn
(gen_fnms_sf(operands
[
4
]
,operands
[
2
]
,operands
[
5
]
,operands
[
4
]
));
emit_insn(gen_fma_sf(operands
[
0
]
,operands
[
4
]
,operands
[
3
]
,operands
[
5
]
));
emit_insn
(gen_fma_sf(operands
[
0
]
,operands
[
4
]
,operands
[
3
]
,operands
[
5
]
));
DONE;
DONE;
})
})
...
@@ -1990,7 +1990,7 @@
...
@@ -1990,7 +1990,7 @@
""
""
"if (GET_CODE (operands
[
2
]
) == CONST_INT)
"if (GET_CODE (operands
[
2
]
) == CONST_INT)
{
{
emit_insn(gen_ashlti3_imm(operands
[
0
]
, operands
[
1
]
, operands
[
2
]
));
emit_insn
(gen_ashlti3_imm(operands
[
0
]
, operands
[
1
]
, operands
[
2
]
));
DONE;
DONE;
}
}
operands
[
3
]
= gen_reg_rtx (TImode);")
operands
[
3
]
= gen_reg_rtx (TImode);")
...
@@ -2110,7 +2110,7 @@
...
@@ -2110,7 +2110,7 @@
""
""
"if (GET_CODE (operands
[
2
]
) == CONST_INT)
"if (GET_CODE (operands
[
2
]
) == CONST_INT)
{
{
emit_insn(gen_lshr
<mode>
3_imm(operands
[
0
]
, operands
[
1
]
, operands
[
2
]
));
emit_insn
(gen_lshr
<mode>
3_imm(operands
[
0
]
, operands
[
1
]
, operands
[
2
]
));
DONE;
DONE;
}
}
operands
[
3
]
= gen_reg_rtx (
<MODE>
mode);
operands
[
3
]
= gen_reg_rtx (
<MODE>
mode);
...
@@ -2159,8 +2159,8 @@
...
@@ -2159,8 +2159,8 @@
(const_int -8)))
(const_int -8)))
(const_int -8))))]
(const_int -8))))]
{
{
emit_insn(gen_subsi3(operands
[
4
]
, GEN_INT(0), operands
[
2
]
));
emit_insn
(gen_subsi3(operands
[
4
]
, GEN_INT(0), operands
[
2
]
));
emit_insn(gen_subsi3(operands
[
5
]
, GEN_INT(7), operands
[
2
]
));
emit_insn
(gen_subsi3(operands
[
5
]
, GEN_INT(7), operands
[
2
]
));
})
})
(define_insn "rotqmbybi_
<mode>
"
(define_insn "rotqmbybi_
<mode>
"
...
@@ -2643,7 +2643,7 @@
...
@@ -2643,7 +2643,7 @@
(abs:V2DF (match_operand:V2DF 2 "spu_reg_operand" "r"))))]
(abs:V2DF (match_operand:V2DF 2 "spu_reg_operand" "r"))))]
""
""
{
{
if(spu_arch == PROCESSOR_CELL)
if
(spu_arch == PROCESSOR_CELL)
{
{
rtx ra = spu_gen_subreg (V4SImode, operands
[
1
]
);
rtx ra = spu_gen_subreg (V4SImode, operands
[
1
]
);
rtx rb = spu_gen_subreg (V4SImode, operands
[
2
]
);
rtx rb = spu_gen_subreg (V4SImode, operands
[
2
]
);
...
@@ -2819,7 +2819,7 @@ selb\t%0,%5,%0,%3"
...
@@ -2819,7 +2819,7 @@ selb\t%0,%5,%0,%3"
(match_operand:V2DF 2 "spu_reg_operand" "r")))]
(match_operand:V2DF 2 "spu_reg_operand" "r")))]
""
""
{
{
if(spu_arch == PROCESSOR_CELL)
if
(spu_arch == PROCESSOR_CELL)
{
{
rtx ra = spu_gen_subreg (V4SImode, operands
[
1
]
);
rtx ra = spu_gen_subreg (V4SImode, operands
[
1
]
);
rtx rb = spu_gen_subreg (V4SImode, operands
[
2
]
);
rtx rb = spu_gen_subreg (V4SImode, operands
[
2
]
);
...
@@ -2908,7 +2908,7 @@ selb\t%0,%5,%0,%3"
...
@@ -2908,7 +2908,7 @@ selb\t%0,%5,%0,%3"
(abs:V2DF (match_operand:V2DF 2 "spu_reg_operand" "r"))))]
(abs:V2DF (match_operand:V2DF 2 "spu_reg_operand" "r"))))]
""
""
{
{
if(spu_arch == PROCESSOR_CELL)
if
(spu_arch == PROCESSOR_CELL)
{
{
rtx ra = spu_gen_subreg (V4SImode, operands
[
1
]
);
rtx ra = spu_gen_subreg (V4SImode, operands
[
1
]
);
rtx rb = spu_gen_subreg (V4SImode, operands
[
2
]
);
rtx rb = spu_gen_subreg (V4SImode, operands
[
2
]
);
...
@@ -3043,7 +3043,7 @@ selb\t%0,%4,%0,%3"
...
@@ -3043,7 +3043,7 @@ selb\t%0,%4,%0,%3"
UNSPEC_DFTSV))]
UNSPEC_DFTSV))]
""
""
{
{
if(spu_arch == PROCESSOR_CELL)
if
(spu_arch == PROCESSOR_CELL)
{
{
rtx result = gen_reg_rtx (V4SImode);
rtx result = gen_reg_rtx (V4SImode);
emit_move_insn (result, CONST0_RTX (V4SImode));
emit_move_insn (result, CONST0_RTX (V4SImode));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment