* builtins.c (expand_builtin_sync_operation): Revert last change. * optabs.c (expand_bool_compare_and_swap): Compare vs old value, not vs new value. (expand_compare_and_swap_loop): Likewise. (expand_sync_operation): Remove fallback from NAND to AND; invert memory operand when expanding from cmpxchg. (expand_sync_fetch_operation): Likewise. * doc/extend.texi (Atomic Builtins): Fix docs for nand and compare-and-swap. * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand when implementing NAND. Fix double-add for AFTER. * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand. (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise. (sync_compare_and_swap<I48MODE>): Fix compare vs zero. Return old memory value. (sync_lock_test_and_set<I48MODE>): Remove extra label and last memory barrier. * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern to return old memory value. (sync_compare_and_swap_cc<IMODE>): Likewise. * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early return pre-reload. Don't consider output or anti dependencies. * config/ia64/sync.md (IMODE): New. (modesuffix): Add QI and HI. (memory_barrier): Simplify expansion. (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE. (cmpxchg_acq_<IMODE>): Likewise. (sync_lock_test_and_set<IMODE>): Likewise. (sync_lock_release<IMODE>): Likewise. From-SVN: r98436
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
crtbegin.asm | Loading commit data... | |
crtend.asm | Loading commit data... | |
crtfastmath.c | Loading commit data... | |
crti.asm | Loading commit data... | |
crtn.asm | Loading commit data... | |
elf.h | Loading commit data... | |
fde-glibc.c | Loading commit data... | |
freebsd.h | Loading commit data... | |
hpux.h | Loading commit data... | |
ia64-c.c | Loading commit data... | |
ia64-modes.def | Loading commit data... | |
ia64-protos.h | Loading commit data... | |
ia64.c | Loading commit data... | |
ia64.h | Loading commit data... | |
ia64.md | Loading commit data... | |
ia64.opt | Loading commit data... | |
ia64intrin.h | Loading commit data... | |
ilp32.opt | Loading commit data... | |
itanium1.md | Loading commit data... | |
itanium2.md | Loading commit data... | |
lib1funcs.asm | Loading commit data... | |
libgcc-ia64.ver | Loading commit data... | |
linux-unwind.h | Loading commit data... | |
linux.h | Loading commit data... | |
predicates.md | Loading commit data... | |
quadlib.c | Loading commit data... | |
sync.md | Loading commit data... | |
sysv4.h | Loading commit data... | |
t-glibc | Loading commit data... | |
t-glibc-libunwind | Loading commit data... | |
t-hpux | Loading commit data... | |
t-ia64 | Loading commit data... | |
unwind-ia64.c | Loading commit data... | |
unwind-ia64.h | Loading commit data... | |
vect.md | Loading commit data... |