Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Fix "ashq" second argument sign extension (the assembler doe...
details: https://anonhg.NetBSD.org/src/rev/81e4120b07c1
branches: trunk
changeset: 785973:81e4120b07c1
user: martin <martin%NetBSD.org@localhost>
date: Mon Apr 08 12:10:53 2013 +0000
description:
Fix "ashq" second argument sign extension (the assembler does not treat
-1 as a 64bit value).
Upstream reported as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56875
Problemm noted by Jonny Billquist (in lint), hint for solution from mouse.
diffstat:
external/gpl3/gcc/dist/gcc/config/vax/vax.c | 4 ++--
external/gpl3/gcc/dist/gcc/config/vax/vax.md | 4 ++--
gnu/dist/gcc4/gcc/config/vax/vax.c | 4 ++--
gnu/dist/gcc4/gcc/config/vax/vax.md | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diffs (82 lines):
diff -r 3c59d61e0250 -r 81e4120b07c1 external/gpl3/gcc/dist/gcc/config/vax/vax.c
--- a/external/gpl3/gcc/dist/gcc/config/vax/vax.c Mon Apr 08 07:18:25 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/vax/vax.c Mon Apr 08 12:10:53 2013 +0000
@@ -1153,7 +1153,7 @@
{
operands[1] = GEN_INT (lval);
operands[2] = GEN_INT (n);
- return "ashq %2,%1,%0";
+ return "ashq %2,%D1,%0";
}
#if HOST_BITS_PER_WIDE_INT == 32
}
@@ -1165,7 +1165,7 @@
{
operands[1] = GEN_INT (hval >> n);
operands[2] = GEN_INT (n + 32);
- return "ashq %2,%1,%0";
+ return "ashq %2,%D1,%0";
#endif
}
}
diff -r 3c59d61e0250 -r 81e4120b07c1 external/gpl3/gcc/dist/gcc/config/vax/vax.md
--- a/external/gpl3/gcc/dist/gcc/config/vax/vax.md Mon Apr 08 07:18:25 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/vax/vax.md Mon Apr 08 12:10:53 2013 +0000
@@ -701,14 +701,14 @@
(ashift:DI (match_operand:DI 1 "general_operand" "g")
(match_operand:QI 2 "general_operand" "g")))]
""
- "ashq %2,%1,%0")
+ "ashq %2,%D1,%0")
(define_insn ""
[(set (match_operand:DI 0 "nonimmediate_operand" "=g")
(ashiftrt:DI (match_operand:DI 1 "general_operand" "g")
(neg:QI (match_operand:QI 2 "general_operand" "g"))))]
""
- "ashq %2,%1,%0")
+ "ashq %2,%D1,%0")
;; We used to have expand_shift handle logical right shifts by using extzv,
;; but this make it very difficult to do lshrdi3. Since the VAX is the
diff -r 3c59d61e0250 -r 81e4120b07c1 gnu/dist/gcc4/gcc/config/vax/vax.c
--- a/gnu/dist/gcc4/gcc/config/vax/vax.c Mon Apr 08 07:18:25 2013 +0000
+++ b/gnu/dist/gcc4/gcc/config/vax/vax.c Mon Apr 08 12:10:53 2013 +0000
@@ -1075,7 +1075,7 @@
{
operands[1] = GEN_INT (lval);
operands[2] = GEN_INT (n);
- return "ashq %2,%1,%0";
+ return "ashq %2,%D1,%0";
}
#if HOST_BITS_PER_WIDE_INT == 32
}
@@ -1087,7 +1087,7 @@
{
operands[1] = GEN_INT (hval >> n);
operands[2] = GEN_INT (n + 32);
- return "ashq %2,%1,%0";
+ return "ashq %2,%D1,%0";
#endif
}
}
diff -r 3c59d61e0250 -r 81e4120b07c1 gnu/dist/gcc4/gcc/config/vax/vax.md
--- a/gnu/dist/gcc4/gcc/config/vax/vax.md Mon Apr 08 07:18:25 2013 +0000
+++ b/gnu/dist/gcc4/gcc/config/vax/vax.md Mon Apr 08 12:10:53 2013 +0000
@@ -724,14 +724,14 @@
(ashift:DI (match_operand:DI 1 "general_operand" "g")
(match_operand:QI 2 "general_operand" "g")))]
""
- "ashq %2,%1,%0")
+ "ashq %2,%D1,%0")
(define_insn ""
[(set (match_operand:DI 0 "nonimmediate_operand" "=g")
(ashiftrt:DI (match_operand:DI 1 "general_operand" "g")
(neg:QI (match_operand:QI 2 "general_operand" "g"))))]
""
- "ashq %2,%1,%0")
+ "ashq %2,%D1,%0")
;; We used to have expand_shift handle logical right shifts by using extzv,
;; but this make it very difficult to do lshrdi3. Since the VAX is the
Home |
Main Index |
Thread Index |
Old Index