Correct integer multiplication and add extra test case. - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2012年12月03日 00:07:29 -0200
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2012年12月03日 00:07:29 -0200
commit90a187a12e0ffa27ef85d100de7b117a97034600 (patch)
tree167ffdfa34df6f5c1d8b40df763421e201714b0f /lib
parentb7c8db4ba437e0464d8c6c8118705f030adddd8a (diff)
downloadlightning-90a187a12e0ffa27ef85d100de7b117a97034600.tar.gz
Correct integer multiplication and add extra test case.
* lib/jit_ppc.c: Assign copyright ownership to FSF. * lib/jit_x86-cpu.c: Correct integer multiplication that was generating code with reversed register arguments. * check/rpn.ok, check/rpn.tst: New test case file.
Diffstat (limited to 'lib')
-rw-r--r--lib/jit_ppc.c 2
-rw-r--r--lib/jit_x86-cpu.c 4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/jit_ppc.c b/lib/jit_ppc.c
index 70af328..4a2e269 100644
--- a/lib/jit_ppc.c
+++ b/lib/jit_ppc.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Paulo Cesar Pereira de Andrade.
+ * Copyright (C) 2012 Free Software Foundation, Inc.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/lib/jit_x86-cpu.c b/lib/jit_x86-cpu.c
index 71fcb96..9be3721 100644
--- a/lib/jit_x86-cpu.c
+++ b/lib/jit_x86-cpu.c
@@ -1053,10 +1053,10 @@ _subxi(jit_state_t *_jit, jit_int32_t r0, jit_int32_t r1, jit_word_t i0)
static void
_imulr(jit_state_t *_jit, jit_int32_t r0, jit_int32_t r1)
{
- rex(0, 1, r1, _NOREG, r0);
+ rex(0, 1, r0, _NOREG, r1);
ic(0x0f);
ic(0xaf);
- mrm(0x03, r7(r1), r7(r0));
+ mrm(0x03, r7(r0), r7(r1));
}
static void
generated by cgit v1.2.3 (git 2.39.1) at 2025年10月06日 17:17:20 +0000

AltStyle によって変換されたページ (->オリジナル) /