Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1104)

Unified Diff: src/trusted/validator_ragel/avx1_xmm_ymm_memory_3op_pd_proof.py

Issue 697143002: enable packed double precision 3 operand mem/simd register avx1 instructions. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | src/trusted/validator_ragel/build.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_ragel/avx1_xmm_ymm_memory_3op_pd_proof.py
diff --git a/src/trusted/validator_ragel/avx1_xmm_ymm_memory_3op_pd_proof.py b/src/trusted/validator_ragel/avx1_xmm_ymm_memory_3op_pd_proof.py
new file mode 100644
index 0000000000000000000000000000000000000000..2042d88fe1e8ac283bbc5c5196f94303ed44624b
--- /dev/null
+++ b/src/trusted/validator_ragel/avx1_xmm_ymm_memory_3op_pd_proof.py
@@ -0,0 +1,35 @@
+# Copyright (c) 2014 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Proof for adding 3 operand xmm/ymm/memory packed double precision ops."""
+
+import proof_tools
+from proof_tools_templates import XmmYmmOrMemory3operand
+
+
+# Packed FP-double-precision AVX1 Instructions of the form:
+# src1 is an xmm or ymm register.
+# src2 is an xmm or ymm register or memory operand.
+# dest is an xmm or ymm register.
+MNEMONICS = [
+ 'vaddpd', 'vaddsubpd', 'vandnpd', 'vandpd', 'vdivpd', 'vhaddpd',
+ 'vhsubpd', 'vmaxpd', 'vminpd', 'vmulpd', 'vorpd', 'vsubpd', 'vunpckhpd',
+ 'vunpcklpd', 'vxorpd'
+]
+
+
+def Validate(trie_diffs, bitness):
+ """Validates that all allowed patterns of MNEMONICS are added."""
+ expected_adds = set()
+ for mnemonic in MNEMONICS:
+ expected_adds.update(XmmYmmOrMemory3operand(mnemonic_name=mnemonic,
+ bitness=bitness))
+
+ proof_tools.AssertDiffSetEquals(
+ trie_diffs,
+ expected_adds=expected_adds,
+ expected_removes=set())
+
+if __name__ == '__main__':
+ proof_tools.RunProof(proof_tools.ParseStandardOpts(), Validate)
« no previous file with comments | « DEPS ('k') | src/trusted/validator_ragel/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698