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

Unified Diff: src/trusted/validator_x86/testdata/32/bt.tf

Issue 10908137: (abandoned) Validator tests: convert hexes to TFs and run on bots (for prod. validator only) (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: restore 'read overflow' and 'SegmentationError' Created 8 years, 3 months 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
Index: src/trusted/validator_x86/testdata/32/bt.tf
diff --git a/src/trusted/validator_x86/testdata/32/bt.tf b/src/trusted/validator_x86/testdata/32/bt.tf
new file mode 100644
index 0000000000000000000000000000000000000000..cdd4702efec4ccaacc838b887e9053ce250c86c0
--- /dev/null
+++ b/src/trusted/validator_x86/testdata/32/bt.tf
@@ -0,0 +1,32 @@
+BITS: 32
+OUTCOME: invalid
+
+# Test legal bit commands
+# btw $0x1,(%esp)
+asm: btw $0x1,(%esp)
+hex: 66 0f ba 24 24 01
+nc_out: Undefined instruction
+
+asm: nop; nop; nop; nop; nop
+hex: 90 90 90 90 90
+
+# btl $0x1,(%esp)
+asm: btl $0x1,(%esp)
+hex: 0f ba 24 24 01
+nc_out: Illegal instruction
+
+# btrl $0x1,(%esp)
+asm: btrl $0x1,(%esp)
+hex: 0f ba 34 24 01
+nc_out: Illegal instruction
+
+# btsl $0x1,(%esp)
+asm: btsl $0x1,(%esp)
+hex: 0f ba 2c 24 01
+nc_out: Illegal instruction
+
+# btcl $0x1,(%esp)
+asm: btcl $0x1,(%esp)
+hex: 0f ba 3c 24 01
+nc_out: Illegal instruction
+

Powered by Google App Engine
This is Rietveld 408576698