[Qemu-devel] [PATCH 3/3] tests: Add unit tests for mulu64 and muls64

2013-02-16 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tests/Makefile | 6 - tests/test-mul64.c | 70 ++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 tests/test-mul64.c diff --git a/tests/Makefile b/tests/Makefile index a2d62b8..

Re: [Qemu-devel] [PATCH 3/3] tests: Add unit tests for mulu64 and muls64

2013-02-02 Thread Blue Swirl
On Tue, Jan 29, 2013 at 8:52 PM, Richard Henderson wrote: > On 01/29/2013 12:06 PM, Blue Swirl wrote: >>> >>> +static const Test test_u_data[] = { >>> +{ 1, 1, 0, 1 }, >>> +{ 1, 1, 0, 1 }, >>> +{ -1ull, 2, 1, -2ull }, >> >> >> Shouldn't '1' be '-1'? How can this test pa

Re: [Qemu-devel] [PATCH 3/3] tests: Add unit tests for mulu64 and muls64

2013-01-29 Thread Richard Henderson
On 01/29/2013 12:06 PM, Blue Swirl wrote: +static const Test test_u_data[] = { +{ 1, 1, 0, 1 }, +{ 1, 1, 0, 1 }, +{ -1ull, 2, 1, -2ull }, Shouldn't '1' be '-1'? How can this test pass? This is 0x___ * 2 = 0x1____fffe with the knowledge

Re: [Qemu-devel] [PATCH 3/3] tests: Add unit tests for mulu64 and muls64

2013-01-29 Thread Blue Swirl
On Mon, Jan 28, 2013 at 10:09 PM, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tests/Makefile | 7 +- > tests/test-mul64.c | 69 > ++ > 2 files changed, 75 insertions(+), 1 deletion(-) > create mode 100644 test

[Qemu-devel] [PATCH 3/3] tests: Add unit tests for mulu64 and muls64

2013-01-28 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tests/Makefile | 7 +- tests/test-mul64.c | 69 ++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 tests/test-mul64.c diff --git a/tests/Makefile b/tests/Makefile index 442b286.