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
53e33d95
Commit
53e33d95
authored
Aug 19, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(subst, case AND): Only make IF_THEN_ELSE if conditional moves exist.
From-SVN: r1903
parent
674ba2d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gcc/combine.c
+5
-0
No files found.
gcc/combine.c
View file @
53e33d95
...
@@ -3638,6 +3638,8 @@ subst (x, from, to, in_dest, unique_copy)
...
@@ -3638,6 +3638,8 @@ subst (x, from, to, in_dest, unique_copy)
goto
restart
;
goto
restart
;
}
}
#ifdef HAVE_conditional_move
/* If we have (and A B) with A not an object but that is known to
/* If we have (and A B) with A not an object but that is known to
be -1 or 0, this is equivalent to the expression
be -1 or 0, this is equivalent to the expression
(if_then_else (ne A (const_int 0)) B (const_int 0))
(if_then_else (ne A (const_int 0)) B (const_int 0))
...
@@ -3660,6 +3662,7 @@ subst (x, from, to, in_dest, unique_copy)
...
@@ -3660,6 +3662,7 @@ subst (x, from, to, in_dest, unique_copy)
XEXP
(
x
,
1
),
const0_rtx
);
XEXP
(
x
,
1
),
const0_rtx
);
goto
restart
;
goto
restart
;
}
}
#endif
/* In the following group of tests (and those in case IOR below),
/* In the following group of tests (and those in case IOR below),
we start with some combination of logical operations and apply
we start with some combination of logical operations and apply
...
@@ -4799,6 +4802,8 @@ force_to_mode (x, mode, bits, reg)
...
@@ -4799,6 +4802,8 @@ force_to_mode (x, mode, bits, reg)
&&
sub_optab
->
handlers
[(
int
)
mode
].
insn_code
==
CODE_FOR_nothing
)
&&
sub_optab
->
handlers
[(
int
)
mode
].
insn_code
==
CODE_FOR_nothing
)
||
(
code
==
MULT
&&
(
smul_optab
->
handlers
[(
int
)
mode
].
insn_code
||
(
code
==
MULT
&&
(
smul_optab
->
handlers
[(
int
)
mode
].
insn_code
==
CODE_FOR_nothing
))
==
CODE_FOR_nothing
))
||
(
code
==
AND
&&
and_optab
->
handlers
[(
int
)
mode
].
insn_code
==
CODE_FOR_nothing
)
||
(
code
==
IOR
||
(
code
==
IOR
&&
ior_optab
->
handlers
[(
int
)
mode
].
insn_code
==
CODE_FOR_nothing
)
&&
ior_optab
->
handlers
[(
int
)
mode
].
insn_code
==
CODE_FOR_nothing
)
||
(
code
==
XOR
&&
(
xor_optab
->
handlers
[(
int
)
mode
].
insn_code
||
(
code
==
XOR
&&
(
xor_optab
->
handlers
[(
int
)
mode
].
insn_code
...
...
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