Index: src/trusted/validator_x86/testdata/32/direct-call-32.tf |
diff --git a/src/trusted/validator_x86/testdata/32/direct-call-32.tf b/src/trusted/validator_x86/testdata/32/direct-call-32.tf |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8a69b4c573f159a5e38e00f00c8274d101ed4f3b |
--- /dev/null |
+++ b/src/trusted/validator_x86/testdata/32/direct-call-32.tf |
@@ -0,0 +1,23 @@ |
+BITS: 32 |
+OUTCOME: valid |
+ |
+# This file tests how we handle a 32-bit direct call. |
+# |
+# Pad with nops, so that call is bundle aligned. |
+asm: nop; nop; nop; nop; nop; nop; nop; nop |
+hex: 90 90 90 90 90 90 90 90 |
+ |
+asm: nop; nop; nop; nop; nop; nop; nop; nop |
+hex: 90 90 90 90 90 90 90 90 |
+ |
+asm: nop; nop; nop; nop; nop; nop; nop; nop |
+hex: 90 90 90 90 90 90 90 90 |
+ |
+asm: nop; nop; nop |
+hex: 90 90 90 |
+ |
+ |
+# Define 32-bit direct call. |
+asm: call .-11 |
+hex: e8 F0 FF FF FF |
+ |