summaryrefslogtreecommitdiff
path: root/test/riprel.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-31 10:59:26 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-31 10:59:26 -0700
commit1b9dd7d1e1d9b202a00d752cafd9970b56cbf3b9 (patch)
tree29cdf0087857a93f5ee810429ef13b1102f9c9ac /test/riprel.pl
parenta30acb52cd1c2bdd366144fa389c78fb4dabf948 (diff)
downloadnasm-1b9dd7d1e1d9b202a00d752cafd9970b56cbf3b9.tar.gz
Even more "riprel" tests
Add a64 and a32 combinations.
Diffstat (limited to 'test/riprel.pl')
-rw-r--r--test/riprel.pl14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/riprel.pl b/test/riprel.pl
index 3859f1d6..83dabe8e 100644
--- a/test/riprel.pl
+++ b/test/riprel.pl
@@ -7,14 +7,16 @@ foreach $mode ('abs', 'rel') {
foreach $so ('', 'fs:', 'es:') {
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$so$v]\n";
+ foreach $ao ('', 'a64 ', 'a32 ') {
+ foreach $sq ('', 'dword ', 'qword ') {
+ foreach $v ('foo', '0xaaaaaaaaaaaaaaaa', '0xbbbbbbbb',
+ '0xffffffffcccccccc') {
+ foreach $r ( 'al', 'bl', 'ax', 'bx', 'eax', 'ebx', 'rax', 'rbx') {
+ print "\tmov $r,[$ao$rq$sq$so$v]\n";
+ }
}
+ print "\n";
}
- print "\n";
}
}
}