Author: hager <[email protected]>
Branch: ppc-jit-backend
Changeset: r45714:3f73bf15742d
Date: 2011-07-12 17:51 +0200
http://bitbucket.org/pypy/pypy/changeset/3f73bf15742d/
Log: Added test for mr instruction.
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_ppc.py
b/pypy/jit/backend/ppc/ppcgen/test/test_ppc.py
--- a/pypy/jit/backend/ppc/ppcgen/test/test_ppc.py
+++ b/pypy/jit/backend/ppc/ppcgen/test/test_ppc.py
@@ -21,15 +21,21 @@
if autodetect_main_model() not in ["ppc", "ppc64"]:
py.test.skip("can't test all of ppcgen on non-PPC!")
+ def test_load_imm(self):
+ a = MyPPCAssembler()
+ a.li(3, 200)
+ a.blr()
+ f = a.assemble()
+ assert f() == 200
+
def test_add_imm(self):
a = MyPPCAssembler()
-
a.li(3, 6)
a.addi(3, 3, 1)
a.blr()
-
f = a.assemble()
assert f() == 7
+
"""
class TestAssemble(object):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit