Chromium Code Reviews| Index: src/trusted/validator_x86/testdata/64/jump_not_atomic.tf |
| diff --git a/src/trusted/validator_x86/testdata/64/jump_not_atomic.tf b/src/trusted/validator_x86/testdata/64/jump_not_atomic.tf |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..824c9d03afd30a53dba7a6d1e34c3d5bb8dab989 |
| --- /dev/null |
| +++ b/src/trusted/validator_x86/testdata/64/jump_not_atomic.tf |
| @@ -0,0 +1,17 @@ |
| +BITS: 64 |
| +OUTCOME: invalid |
| + |
| +# Models a jump into the middle of an atomic instruction sequence. |
| +asm: jmp .+5 |
| +hex: EB 03 |
| + |
| +asm: and $0xffffffffffffffe0,%edx |
| +hex: 83 e2 e0 |
| + |
| +asm: add %r15,%rdx |
| +hex: 4c 01 fa |
| +nc_out: Bad jump target |
| + |
| +asm: jmpq *%rdx |
| +hex: ff e2 |
| + |