This commit is contained in:
Dmitry Stogov 2022-04-07 23:31:03 +03:00
parent a28f18a712
commit baf3d31526
17 changed files with 29 additions and 29 deletions

View File

@ -63,19 +63,19 @@ function run_test($test, $name, $code, $expect, $args) {
}
function find_tests_in_dir($dir, &$tests) {
$d = opendir($dir);
if ($d !== false) {
while (($name = readdir($d)) !== false) {
if ($name === '.' || $name === '..') continue;
$fn = "$dir/$name";
if (is_dir($fn)) {
find_tests_in_dir($fn, $tests);
} else if (substr($name, -4) === '.irt') {
$tests[] = $fn;
}
}
closedir($d);
}
$d = opendir($dir);
if ($d !== false) {
while (($name = readdir($d)) !== false) {
if ($name === '.' || $name === '..') continue;
$fn = "$dir/$name";
if (is_dir($fn)) {
find_tests_in_dir($fn, $tests);
} else if (substr($name, -4) === '.irt') {
$tests[] = $fn;
}
}
closedir($d);
}
}
function find_tests($dir) {

View File

@ -14,4 +14,4 @@
test:
movl %esi, %eax
addl %edi, %eax
retq
retq

View File

@ -14,4 +14,4 @@
test:
movl %edi, %eax
addl $0x11, %eax
retq
retq

View File

@ -14,4 +14,4 @@
test:
movl %esi, %eax
addl %edi, %eax
retq
retq

View File

@ -14,4 +14,4 @@
test:
movl %edi, %eax
addl $0x11, %eax
retq
retq

View File

@ -13,4 +13,4 @@
--EXPECT--
test:
addsd %xmm1, %xmm0
retq
retq

View File

@ -13,4 +13,4 @@
--EXPECT--
test:
addsd %xmm1, %xmm0
retq
retq

View File

@ -13,4 +13,4 @@
--EXPECT--
test:
vaddsd %xmm0, %xmm1, %xmm0
retq
retq

View File

@ -13,4 +13,4 @@
--EXPECT--
test:
vaddsd %xmm0, %xmm1, %xmm0
retq
retq

View File

@ -14,4 +14,4 @@
test:
movl %edi, %eax
subl %esi, %eax
retq
retq

View File

@ -14,4 +14,4 @@
test:
movl %edi, %eax
subl $0x11, %eax
retq
retq

View File

@ -14,4 +14,4 @@
test:
movl %esi, %eax
subl %edi, %eax
retq
retq

View File

@ -14,4 +14,4 @@
test:
movl $0x11, %eax
subl %edi, %eax
retq
retq

View File

@ -13,4 +13,4 @@
--EXPECT--
test:
subsd %xmm1, %xmm0
retq
retq

View File

@ -14,4 +14,4 @@
test:
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
retq
retq

View File

@ -13,4 +13,4 @@
--EXPECT--
test:
vsubsd %xmm1, %xmm0, %xmm0
retq
retq

View File

@ -13,4 +13,4 @@
--EXPECT--
test:
vsubsd %xmm0, %xmm1, %xmm0
retq
retq