Index: src/trusted/validator/x86/testing/tf/converted/64/mov-lea-rsp.tf |
diff --git a/src/trusted/validator/x86/testing/tf/converted/64/mov-lea-rsp.tf b/src/trusted/validator/x86/testing/tf/converted/64/mov-lea-rsp.tf |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b3da5835bb2749eba3ff9cba183b44266208eaee |
--- /dev/null |
+++ b/src/trusted/validator/x86/testing/tf/converted/64/mov-lea-rsp.tf |
@@ -0,0 +1,12 @@ |
+BITS: 64 |
+OUTCOME: valid |
+ |
+# Sample of using lea solution (instead of add) to update rsp. |
+# mov %esp, %ecx |
+# lea %rsp, [%rsp+%r15*1] |
+asm: mov %ecx,%esp |
+hex: 89 cc |
+ |
+asm: lea (%rsp,%r15,1),%rsp |
+hex: 4a 8d 24 3c |
+ |