aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/apx.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2023-11-10 12:13:06 +0900
committerMITSUNARI Shigeo <[email protected]>2023-11-10 12:13:06 +0900
commita18e5aeb5bc3a3cc27dbf3d6aea37472ade72e20 (patch)
treec661fc72066c79b2c4ef1e816ef2b0856c793ece /test/apx.cpp
parent5bb8461b43f1f1df682a40f8b1008d4a58428e49 (diff)
downloadxbyak-a18e5aeb5bc3a3cc27dbf3d6aea37472ade72e20.tar.gz
xbyak-a18e5aeb5bc3a3cc27dbf3d6aea37472ade72e20.zip
rorx supports apx
Diffstat (limited to 'test/apx.cpp')
-rw-r--r--test/apx.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/apx.cpp b/test/apx.cpp
index 65f6540..b9e6e9f 100644
--- a/test/apx.cpp
+++ b/test/apx.cpp
@@ -557,6 +557,9 @@ CYBOZU_TEST_AUTO(bextr_etc)
blsr(ecx, r17d);
blsr(r30, ptr [r31+r20*4]);
+ rorx(r30, r31, 3);
+ rorx(ecx, r17d, 5);
+ rorx(r30, ptr [r31+r20*4], 4);
}
} c;
const uint8_t tbl[] = {
@@ -605,6 +608,10 @@ CYBOZU_TEST_AUTO(bextr_etc)
0x62, 0xfa, 0x74, 0x08, 0xf3, 0xc9,
0x62, 0xda, 0x88, 0x00, 0xf3, 0x0c, 0xa7,
+ // rorx
+ 0x62, 0x4b, 0xff, 0x08, 0xf0, 0xf7, 0x03,
+ 0x62, 0xfb, 0x7f, 0x08, 0xf0, 0xc9, 0x05,
+ 0x62, 0x4b, 0xfb, 0x08, 0xf0, 0x34, 0xa7, 0x04,
};
const size_t n = sizeof(tbl);
CYBOZU_TEST_EQUAL(c.getSize(), n);