diff options
Diffstat (limited to 'testsuite.c')
-rw-r--r-- | testsuite.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/testsuite.c b/testsuite.c index 7eba0f8..6e41e0d 100644 --- a/testsuite.c +++ b/testsuite.c @@ -214,6 +214,18 @@ test_pshuflw (assembler_t *as) } static uint8_t * +test_movd (assembler_t *as) +{ + fragment_t *frag = fragment_new (as); + + BEGIN_ASM (frag) + I_movd, DWORD_PTR + PTR (rdx), xmm0, + END_ASM (); + + return assembler_link (as, frag, NULL); +} + +static uint8_t * test_riprel (assembler_t *as) { fragment_t *frag = fragment_new (as); @@ -475,8 +487,9 @@ main () success &= run_test (as, "test_convert", test_convert, 0x9d52c83b); success &= run_test (as, "test_misc", test_misc, 0x483565c1); success &= run_test (as, "test_riprel", test_riprel, 0xf5497642); - success &= run_test (as, "test_movdq", test_movdq, 0xf6f727a6); + success &= run_test (as, "test_movdq", test_movdq, 0xedd4f79d); success &= run_test (as, "test_pshuflw", test_pshuflw, 0x7a8c7f59); + success &= run_test (as, "test_movd", test_movd, 0xc33d08fb); if (success) printf ("Test suite PASSED\n"); |