aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-02-05 09:47:48 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-02-05 09:47:48 +0000
commitf3877b2f7077963f9c688a4116e6d8abd0d212a6 (patch)
tree551cbc1ba48f1fca108cba8affe6cd811a8e26b4 /gcc/config/sparc
parent46628ab7ac4b2d80ce12a9a697f88733984594ec (diff)
downloadgcc-f3877b2f7077963f9c688a4116e6d8abd0d212a6.zip
gcc-f3877b2f7077963f9c688a4116e6d8abd0d212a6.tar.gz
gcc-f3877b2f7077963f9c688a4116e6d8abd0d212a6.tar.bz2
re PR target/79353 (ICE in curr_insn_transform, at lra-constraints.c:3773)
PR target/79353 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32. (atomic_storedi_1): Likewise. From-SVN: r245188
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r--gcc/config/sparc/sync.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/sparc/sync.md b/gcc/config/sparc/sync.md
index 8db2d15..1593bde 100644
--- a/gcc/config/sparc/sync.md
+++ b/gcc/config/sparc/sync.md
@@ -133,10 +133,10 @@
})
(define_insn "atomic_loaddi_1"
- [(set (match_operand:DI 0 "register_operand" "=U,?*f")
- (unspec:DI [(match_operand:DI 1 "memory_operand" "m,m")]
+ [(set (match_operand:DI 0 "register_operand" "=r,?*f")
+ (unspec:DI [(match_operand:DI 1 "memory_operand" "T,T")]
UNSPEC_ATOMIC))]
- "!TARGET_ARCH64"
+ "TARGET_ARCH32"
"ldd\t%1, %0"
[(set_attr "type" "load,fpload")])
@@ -160,11 +160,11 @@
})
(define_insn "atomic_storedi_1"
- [(set (match_operand:DI 0 "memory_operand" "=m,m,m")
+ [(set (match_operand:DI 0 "memory_operand" "=T,T,T")
(unspec:DI
- [(match_operand:DI 1 "register_or_v9_zero_operand" "J,U,?*f")]
+ [(match_operand:DI 1 "register_or_v9_zero_operand" "J,r,?*f")]
UNSPEC_ATOMIC))]
- "!TARGET_ARCH64"
+ "TARGET_ARCH32"
"@
stx\t%r1, %0
std\t%1, %0