intel/tools: Add assembler unit tests for ROL/ROR instructions
authorSagar Ghuge <sagar.ghuge@intel.com>
Tue, 4 Jun 2019 20:05:20 +0000 (13:05 -0700)
committerSagar Ghuge <sagar.ghuge@intel.com>
Mon, 1 Jul 2019 17:14:22 +0000 (10:14 -0700)
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/tools/meson.build
src/intel/tools/tests/gen11/rol.asm [new file with mode: 0644]
src/intel/tools/tests/gen11/rol.expected [new file with mode: 0644]
src/intel/tools/tests/gen11/ror.asm [new file with mode: 0644]
src/intel/tools/tests/gen11/ror.expected [new file with mode: 0644]

index 4aa09d99ceed33d692a364b2dd6c9d9ee2c610a9..b0598f39ab54915332385cf7d8c1043e19ca9a6c 100644 (file)
@@ -164,6 +164,7 @@ asm_testcases = [
    ['hsw', 'tests/gen7.5'],
    ['bdw', 'tests/gen8'],
    ['skl', 'tests/gen9'],
+   ['icl', 'tests/gen11'],
 ]
 
 test_runner = find_program('tests/run-test.sh')
diff --git a/src/intel/tools/tests/gen11/rol.asm b/src/intel/tools/tests/gen11/rol.asm
new file mode 100644 (file)
index 0000000..e8eba29
--- /dev/null
@@ -0,0 +1 @@
+rol(16)         g3<1>UD         g2<0,1,0>UD     g2.1<0,1,0>UD   { align1 1H };
diff --git a/src/intel/tools/tests/gen11/rol.expected b/src/intel/tools/tests/gen11/rol.expected
new file mode 100644 (file)
index 0000000..e9dacca
--- /dev/null
@@ -0,0 +1 @@
+0f 00 80 00 08 02 60 20 40 00 00 02 44 00 00 00
diff --git a/src/intel/tools/tests/gen11/ror.asm b/src/intel/tools/tests/gen11/ror.asm
new file mode 100644 (file)
index 0000000..4a83a26
--- /dev/null
@@ -0,0 +1 @@
+ror(16)         g3<1>UD         g2<0,1,0>UD     g2.1<0,1,0>UD   { align1 1H };
diff --git a/src/intel/tools/tests/gen11/ror.expected b/src/intel/tools/tests/gen11/ror.expected
new file mode 100644 (file)
index 0000000..1778601
--- /dev/null
@@ -0,0 +1 @@
+0e 00 80 00 08 02 60 20 40 00 00 02 44 00 00 00