diff options
author | comex | 2015-02-09 01:35:40 -0500 |
---|---|---|
committer | comex | 2015-02-09 01:35:40 -0500 |
commit | d4154d33d9768d9671ee1a105ea8f5ff725ae4d5 (patch) | |
tree | 5b3539a1dacef1f10a5dceb8ebdccbb1fc590a78 /test/transform-dis-cases-i386.S | |
parent | theoretically support x86 PIC (diff) | |
download | substitute-d4154d33d9768d9671ee1a105ea8f5ff725ae4d5.tar.gz |
test harness
Diffstat (limited to '')
-rw-r--r-- | test/transform-dis-cases-i386.S | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/transform-dis-cases-i386.S b/test/transform-dis-cases-i386.S new file mode 100644 index 0000000..31508ca --- /dev/null +++ b/test/transform-dis-cases-i386.S @@ -0,0 +1,16 @@ +#define GIVEN .ascii "GIVEN"; +#define EXPECT .ascii "EXPECT"; +#define EXPECT_ERR .ascii "EXPECT_ERR"; + +GIVEN call .; pop %edx +/* XXX the extra push isn't necessary in 32-bit mode */ +EXPECT push %eax; push %eax; mov $0xdead0005, %eax; pop %eax; pop %edx + +GIVEN jmp 0f; 0: +EXPECT_ERR + +GIVEN jne 0xdead1000 +EXPECT jne 0f; jmp 1f; 0: jmp 0xdead1000; 1: + +GIVEN loopne 0xdead0080 +EXPECT loopne 0f; jmp 1f; 0: jmp 0xdead1000; 1: |