aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2001-08-31 01:56:43 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2001-08-31 01:56:43 +0000
commited09481d0d29570228d78931cf6b4507b0ad375c (patch)
tree4d0b0a83efc2160beedae98b431966ae7c63c15f /gcc
parentbc8a5e56c097ded69d54b3061bd5802e8e94a5a7 (diff)
downloadgcc-ed09481d0d29570228d78931cf6b4507b0ad375c.zip
gcc-ed09481d0d29570228d78931cf6b4507b0ad375c.tar.gz
gcc-ed09481d0d29570228d78931cf6b4507b0ad375c.tar.bz2
stormy16.md (udivmodhi4): Express using UDIV/UMOD, not DIV/MOD, of course.
* config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD, not DIV/MOD, of course. From-SVN: r45303
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/stormy16/stormy16.md8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a803fef..ec7807b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-30 Geoffrey Keating <geoffk@redhat.com>
+
+ * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
+ not DIV/MOD, of course.
+
2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
* rtl.def: Undo my patch commited 2001-08-27.
diff --git a/gcc/config/stormy16/stormy16.md b/gcc/config/stormy16/stormy16.md
index 83860b4..c1b6128 100644
--- a/gcc/config/stormy16/stormy16.md
+++ b/gcc/config/stormy16/stormy16.md
@@ -379,11 +379,11 @@
;; Unsigned division giving both quotient and remainder
(define_insn "udivmodhi4"
[(set (match_operand:HI 0 "register_operand" "=a")
- (div:HI (match_operand:HI 1 "register_operand" "a")
- (match_operand:HI 2 "register_operand" "c")))
+ (udiv:HI (match_operand:HI 1 "register_operand" "a")
+ (match_operand:HI 2 "register_operand" "c")))
(set (match_operand:HI 3 "register_operand" "=b")
- (mod:HI (match_dup 1)
- (match_dup 2)))]
+ (umod:HI (match_dup 1)
+ (match_dup 2)))]
""
"div"
[(set_attr "psw_operand" "nop")])