From 5e742fb248f2b646e55f127977be7945173727df Mon Sep 17 00:00:00 2001 From: rth Date: Tue, 10 May 2005 16:20:35 +0000 Subject: [PATCH] * config/ia64/sync.md (sync_add): Fix arguments for no return value pattern. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99524 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 9 +++++++-- gcc/config/ia64/sync.md | 12 +++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 51526821717..bf396f74a08 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ -2005-05-11 Grigory Zagorodnev - H.J. Lu + + * config/ia64/sync.md (sync_add): Fix arguments for + no return value pattern. + +2005-05-10 Grigory Zagorodnev + H.J. Lu * libgcov.c (create_file_directory): New function. Create directory for the given file name. diff --git a/gcc/config/ia64/sync.md b/gcc/config/ia64/sync.md index 0ea8e96ebaa..7e9c98a997b 100644 --- a/gcc/config/ia64/sync.md +++ b/gcc/config/ia64/sync.md @@ -32,15 +32,17 @@ [(set_attr "itanium_class" "syst_m")]) (define_expand "sync_add" - [(match_operand:I48MODE 0 "gr_register_operand" "") - (match_operand:I48MODE 1 "memory_operand" "") - (match_operand:I48MODE 2 "general_operand" "")] + [(match_operand:I48MODE 0 "memory_operand" "") + (match_operand:I48MODE 1 "general_operand" "")] "" { - if (!fetchadd_operand (operands[2], mode)) + rtx tmp; + if (!fetchadd_operand (operands[1], mode)) FAIL; + + tmp = gen_reg_rtx (mode); emit_insn (gen_memory_barrier ()); - emit_insn (gen_fetchadd_acq_ (operands[0], operands[1], operands[2])); + emit_insn (gen_fetchadd_acq_ (tmp, operands[0], operands[1])); DONE; }) -- 2.11.4.GIT