diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-11-22 12:19:04 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-11-22 12:19:04 +0900 |
commit | a9310deac892e3e8d6e156b6ed29cb8247755b0d (patch) | |
tree | 67b7f86539974f6c21f25e2a283a7474df8bf42d /test | |
parent | ec2881bfd147aad43faa791649123643cfa4fa1a (diff) | |
download | xbyak-a9310deac892e3e8d6e156b6ed29cb8247755b0d.tar.gz xbyak-a9310deac892e3e8d6e156b6ed29cb8247755b0d.zip |
add tests of push/pop
Diffstat (limited to 'test')
-rw-r--r-- | test/apx.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/apx.cpp b/test/apx.cpp index 3e0b0af..857b37d 100644 --- a/test/apx.cpp +++ b/test/apx.cpp @@ -1019,6 +1019,8 @@ CYBOZU_TEST_AUTO(base) add(r30, r20); add(r30, ptr[r20]); cmp(r30, ptr[r20]); + push(r16); + pop(r16); } } c; const uint8_t tbl[] = { @@ -1029,6 +1031,10 @@ CYBOZU_TEST_AUTO(base) 0xd5, 0x5c, 0x03, 0x34, 0x24, // cmp 0xd5, 0x5c, 0x3b, 0x34, 0x24, + // push + 0xd5, 0x10, 0x50, + // pop + 0xd5, 0x10, 0x58, }; const size_t n = sizeof(tbl); CYBOZU_TEST_EQUAL(c.getSize(), n); |