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
acb0638d
Commit
acb0638d
authored
Aug 05, 2001
by
Bernd Schmidt
Committed by
Bernd Schmidt
Aug 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New pattern for the combiner
From-SVN: r44648
parent
1ad72cef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
95 additions
and
0 deletions
+95
-0
gcc/ChangeLog
+5
-0
gcc/config/ia64/ia64.c
+13
-0
gcc/config/ia64/ia64.h
+1
-0
gcc/config/ia64/ia64.md
+76
-0
No files found.
gcc/ChangeLog
View file @
acb0638d
...
@@ -15,6 +15,11 @@
...
@@ -15,6 +15,11 @@
*
config
/
ia64
/
ia64
.
c
(
ia64_sched_reorder
)
:
Defer
scheduling
of
*
config
/
ia64
/
ia64
.
c
(
ia64_sched_reorder
)
:
Defer
scheduling
of
asms
if
other
insns
are
available
.
asms
if
other
insns
are
available
.
*
config
/
ia64
/
ia64
.
c
(
condop_operator
)
:
New
predicate
.
*
config
/
ia64
/
ia64
.
h
(
PREDICATE_CODES
)
:
Add
it
.
*
config
/
ia64
/
ia64
.
md
(
cond_opsi2_internal
and
splitters
)
:
New
patterns
.
2001
-
08
-
04
Hans
-
Peter
Nilsson
<
hp
@bitrange
.
com
>
2001
-
08
-
04
Hans
-
Peter
Nilsson
<
hp
@bitrange
.
com
>
*
config
/
sh
/
sh
.
c
(
sh_asm_named_section
)
:
Fix
typo
in
align
*
config
/
sh
/
sh
.
c
(
sh_asm_named_section
)
:
Fix
typo
in
align
...
...
gcc/config/ia64/ia64.c
View file @
acb0638d
...
@@ -719,6 +719,19 @@ predicate_operator (op, mode)
...
@@ -719,6 +719,19 @@ predicate_operator (op, mode)
&&
(
code
==
EQ
||
code
==
NE
));
&&
(
code
==
EQ
||
code
==
NE
));
}
}
/* Return 1 if this operator can be used in a conditional operation. */
int
condop_operator
(
op
,
mode
)
register
rtx
op
;
enum
machine_mode
mode
;
{
enum
rtx_code
code
=
GET_CODE
(
op
);
return
((
GET_MODE
(
op
)
==
mode
||
mode
==
VOIDmode
)
&&
(
code
==
PLUS
||
code
==
MINUS
||
code
==
AND
||
code
==
IOR
||
code
==
XOR
));
}
/* Return 1 if this is the ar.lc register. */
/* Return 1 if this is the ar.lc register. */
int
int
...
...
gcc/config/ia64/ia64.h
View file @
acb0638d
...
@@ -2664,6 +2664,7 @@ do { \
...
@@ -2664,6 +2664,7 @@ do { \
{ "adjusted_comparison_operator", {LT, GE, LTU, GEU}}, \
{ "adjusted_comparison_operator", {LT, GE, LTU, GEU}}, \
{ "signed_inequality_operator", {GE, GT, LE, LT}}, \
{ "signed_inequality_operator", {GE, GT, LE, LT}}, \
{ "predicate_operator", {NE, EQ}}, \
{ "predicate_operator", {NE, EQ}}, \
{ "condop_operator", {PLUS, MINUS, IOR, XOR, AND}}, \
{ "ar_lc_reg_operand", {REG}}, \
{ "ar_lc_reg_operand", {REG}}, \
{ "ar_ccv_reg_operand", {REG}}, \
{ "ar_ccv_reg_operand", {REG}}, \
{ "general_tfmode_operand", {SUBREG, REG, CONST_DOUBLE, MEM}}, \
{ "general_tfmode_operand", {SUBREG, REG, CONST_DOUBLE, MEM}}, \
...
...
gcc/config/ia64/ia64.md
View file @
acb0638d
...
@@ -4495,6 +4495,82 @@
...
@@ -4495,6 +4495,82 @@
VOIDmode, operands
[
1
]
, const0_rtx);
VOIDmode, operands
[
1
]
, const0_rtx);
}")
}")
(define_insn "
*
cond_opsi2_internal"
[
(set (match_operand:SI 0 "gr_register_operand" "=r")
(match_operator:SI 5 "condop_operator"
[
(if_then_else:SI
(match_operator 6 "predicate_operator"
[
(match_operand:BI 1 "register_operand" "c")
(const_int 0)])
(match_operand:SI 2 "gr_register_operand" "r")
(match_operand:SI 3 "gr_register_operand" "r"))
(match_operand:SI 4 "gr_register_operand" "r")]))]
""
"#"
[
(set_attr "itanium_class" "ialu")
(set_attr "predicable" "no")])
(define_split
[
(set (match_operand:SI 0 "gr_register_operand" "")
(match_operator:SI 5 "condop_operator"
[
(if_then_else:SI
(match_operator 6 "predicate_operator"
[
(match_operand:BI 1 "register_operand" "")
(const_int 0)])
(match_operand:SI 2 "gr_register_operand" "")
(match_operand:SI 3 "gr_register_operand" ""))
(match_operand:SI 4 "gr_register_operand" "")]))]
"reload_completed"
[
(cond_exec
(match_dup 6)
(set (match_dup 0) (match_op_dup:SI 5
[
(match_dup 2) (match_dup 4)
]
)))
(cond_exec
(match_dup 7)
(set (match_dup 0) (match_op_dup:SI 5
[
(match_dup 3) (match_dup 4)
]
)))]
"
{
operands
[
7
]
= gen_rtx_fmt_ee (GET_CODE (operands
[
6
]
) == NE ? EQ : NE,
VOIDmode, operands
[
1
]
, const0_rtx);
}")
(define_insn "
*
cond_opsi2_internal_b"
[
(set (match_operand:SI 0 "gr_register_operand" "=r")
(match_operator:SI 5 "condop_operator"
[
(match_operand:SI 4 "gr_register_operand" "r")
(if_then_else:SI
(match_operator 6 "predicate_operator"
[
(match_operand:BI 1 "register_operand" "c")
(const_int 0)])
(match_operand:SI 2 "gr_register_operand" "r")
(match_operand:SI 3 "gr_register_operand" "r"))]))]
""
"#"
[
(set_attr "itanium_class" "ialu")
(set_attr "predicable" "no")])
(define_split
[
(set (match_operand:SI 0 "gr_register_operand" "")
(match_operator:SI 5 "condop_operator"
[
(match_operand:SI 4 "gr_register_operand" "")
(if_then_else:SI
(match_operator 6 "predicate_operator"
[
(match_operand:BI 1 "register_operand" "")
(const_int 0)])
(match_operand:SI 2 "gr_register_operand" "")
(match_operand:SI 3 "gr_register_operand" ""))]))]
"reload_completed"
[
(cond_exec
(match_dup 6)
(set (match_dup 0) (match_op_dup:SI 5
[
(match_dup 4) (match_dup 2)
]
)))
(cond_exec
(match_dup 7)
(set (match_dup 0) (match_op_dup:SI 5
[
(match_dup 4) (match_dup 3)
]
)))]
"
{
operands
[
7
]
= gen_rtx_fmt_ee (GET_CODE (operands
[
6
]
) == NE ? EQ : NE,
VOIDmode, operands
[
1
]
, const0_rtx);
}")
;; ::::::::::::::::::::
;; ::::::::::::::::::::
;; ::
;; ::
...
...
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