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
f6d9912f
Commit
f6d9912f
authored
Nov 17, 2011
by
Richard Henderson
Committed by
Richard Henderson
Nov 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'rth/atomic/ppc'
From-SVN: r181459
parent
f631ae2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
gcc/ChangeLog
+6
-0
gcc/config/rs6000/rs6000.c
+4
-4
No files found.
gcc/ChangeLog
View file @
f6d9912f
...
...
@@ -16,6 +16,12 @@
2011
-
11
-
17
Richard
Henderson
<
rth
@
redhat
.
com
>
*
config
/
rs6000
/
rs6000
.
c
(
rs6000_expand_atomic_compare_and_swap
):
Get
new
pseudo
for
target
after
convert_modes
.
(
rs6000_expand_atomic_exchange
,
rs6000_expand_atomic_op
):
Likewise
.
2011
-
11
-
17
Richard
Henderson
<
rth
@
redhat
.
com
>
*
builtins
.
c
(
expand_builtin_mem_thread_fence
):
Remove
.
(
expand_builtin_mem_signal_fence
):
Remove
.
(
expand_builtin_atomic_thread_fence
):
Use
expand_mem_thread_fence
.
gcc/config/rs6000/rs6000.c
View file @
f6d9912f
...
...
@@ -17341,12 +17341,12 @@ rs6000_expand_atomic_compare_and_swap (rtx operands[])
/* Shift and mask OLDVAL into position with the word. */
oldval
=
convert_modes
(
SImode
,
mode
,
oldval
,
1
);
oldval
=
expand_simple_binop
(
SImode
,
ASHIFT
,
oldval
,
shift
,
oldval
,
1
,
OPTAB_LIB_WIDEN
);
NULL_RTX
,
1
,
OPTAB_LIB_WIDEN
);
/* Shift and mask NEWVAL into position within the word. */
newval
=
convert_modes
(
SImode
,
mode
,
newval
,
1
);
newval
=
expand_simple_binop
(
SImode
,
ASHIFT
,
newval
,
shift
,
newval
,
1
,
OPTAB_LIB_WIDEN
);
NULL_RTX
,
1
,
OPTAB_LIB_WIDEN
);
/* Prepare to adjust the return value. */
retval
=
gen_reg_rtx
(
SImode
);
...
...
@@ -17434,7 +17434,7 @@ rs6000_expand_atomic_exchange (rtx operands[])
/* Shift and mask VAL into position with the word. */
val
=
convert_modes
(
SImode
,
mode
,
val
,
1
);
val
=
expand_simple_binop
(
SImode
,
ASHIFT
,
val
,
shift
,
val
,
1
,
OPTAB_LIB_WIDEN
);
NULL_RTX
,
1
,
OPTAB_LIB_WIDEN
);
/* Prepare to adjust the return value. */
retval
=
gen_reg_rtx
(
SImode
);
...
...
@@ -17487,7 +17487,7 @@ rs6000_expand_atomic_op (enum rtx_code code, rtx mem, rtx val,
/* Shift and mask VAL into position with the word. */
val
=
convert_modes
(
SImode
,
mode
,
val
,
1
);
val
=
expand_simple_binop
(
SImode
,
ASHIFT
,
val
,
shift
,
val
,
1
,
OPTAB_LIB_WIDEN
);
NULL_RTX
,
1
,
OPTAB_LIB_WIDEN
);
switch
(
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