2007-09-27 08:00:18 +08:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
2008-04-23 21:05:31 +08:00
|
|
|
print ";Testname=unoptimized; Arguments=-fbin -oriprel.bin -O0; Files=.stdout .stderr riprel.bin\n";
|
|
|
|
print ";Testname=optimized; Arguments=-fbin -oriprel.bin -Ox; Files=.stdout .stderr riprel.bin\n";
|
|
|
|
|
|
|
|
|
2007-09-27 08:00:18 +08:00
|
|
|
print "\tbits 64\n";
|
|
|
|
|
|
|
|
foreach $mode ('abs', 'rel') {
|
|
|
|
print "\n\tdefault $mode\n\n";
|
|
|
|
|
2007-09-29 08:17:20 +08:00
|
|
|
foreach $so ('', 'fs:', 'es:') {
|
|
|
|
foreach $rq ('', 'abs ', 'rel ') {
|
2007-11-01 01:59:26 +08:00
|
|
|
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";
|
|
|
|
}
|
2007-09-29 08:17:20 +08:00
|
|
|
}
|
2007-11-01 01:59:26 +08:00
|
|
|
print "\n";
|
2007-09-27 08:00:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
print "\nfoo:\n";
|