diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-26 17:00:18 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-26 17:00:18 -0700 |
commit | 3f9bc94b6e9cefdf43adcbf45cbd3c93d30a5f45 (patch) | |
tree | 04444095463aefbe339f8fb8a5c24bcd76e13f5b /test/riprel.pl | |
parent | 413fb900bf1199eb842d788cc81045ed546b5247 (diff) | |
download | nasm-3f9bc94b6e9cefdf43adcbf45cbd3c93d30a5f45.tar.gz |
Test for various addressing modes in 64-bit mode
Test of various addressing modes in 64-bit mode. Relative addresses
specified as numbers are currently broken!!
Diffstat (limited to 'test/riprel.pl')
-rw-r--r-- | test/riprel.pl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/riprel.pl b/test/riprel.pl new file mode 100644 index 00000000..fa4405e2 --- /dev/null +++ b/test/riprel.pl @@ -0,0 +1,23 @@ +#!/usr/bin/perl + +print "\tbits 64\n"; + +foreach $mode ('abs', 'rel') { + print "\n\tdefault $mode\n\n"; + + foreach $rq ('', 'abs ', 'rel ') { + foreach $sq ('', 'dword ', 'qword ') { + foreach $v ('foo', '0xaaaaaaaaaaaaaaaa', '0xbbbbbbbb', + '0xffffffffcccccccc') { + foreach $r ('al', 'bl', 'ax', 'bx', 'eax', 'ebx', 'rax', 'rbx') { + print "\tmov $r,[$rq$sq$v]\n"; + } + } + print "\n"; + } + } +} + +print "\nfoo:\n"; + + |