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

Unified Diff: src/trusted/validator_x86/testdata/64/stubseq.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/64/stubseq.tf
diff --git a/src/trusted/validator_x86/testdata/64/stubseq.tf b/src/trusted/validator_x86/testdata/64/stubseq.tf
new file mode 100644
index 0000000000000000000000000000000000000000..32452e5c6a08c5fd2057665ea5e91e38b7892cfe
--- /dev/null
+++ b/src/trusted/validator_x86/testdata/64/stubseq.tf
@@ -0,0 +1,38 @@
+BITS: 64
+OUTCOME: invalid
+
+# Sample stubout code, with multiple stubouts.
+#
+# add %al, %al
+asm: add %al,%al
+hex: 00 c0
+
+# add &rsp, %r15; -- stub out!
+asm: add %r15,%rsp
+hex: 4c 01 fc
+nc_out: ERROR: Illegal assignment to RSP
+
+# add %ebx, %r8d
+asm: add %r8d,%ebx
+hex: 44 01 c3
+
+# test %rax, %rax
+asm: test %rax,%rax
+hex: 48 85 c0
+
+# inc [%rip+0x397614]; -- stub out!
+asm: addr32 incl 0x3976a4(%eip) # 0x3976ab
+hex: 67 ff 05 a4 76 39 00
+nc_out: ERROR: Use of 67 (ADDR16) prefix not allowed by Native Client
+nc_out: ERROR: Assignment to non-64 bit memory address
+
+# mov %r9, %rdx
+asm: mov %rdx,%r9
+hex: 49 89 d1
+
+# mov [%rbp+0x63e470], %rax; -- stub out!
+hex: 67 48 89 84 25 70 e4 63 00
+nc_out: ERROR: Use of 67 (ADDR16) prefix not allowed by Native Client
+nc_out: ERROR: Assignment to non-64 bit memory address
+
+

Powered by Google App Engine
This is Rietveld 408576698