|
Jakub Jelinek |
30f486 |
--- valgrind/none/tests/amd64/gen_insn_test.pl.jj 2010-10-20 22:19:31.000000000 +0200
|
|
Jakub Jelinek |
30f486 |
+++ valgrind/none/tests/amd64/gen_insn_test.pl 2011-02-22 18:36:34.767401963 +0100
|
|
Jakub Jelinek |
30f486 |
@@ -628,7 +628,7 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w)$/)
|
|
Jakub Jelinek |
30f486 |
+ if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w|r(8|16|32|64)|mm|xmm)$/)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
$result->{argnum} = $argnum++;
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
@@ -642,14 +642,6 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
- foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(r(8|16|32|64)|mm|xmm)$/)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- $result->{argnum} = $argnum++;
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
-
|
|
Jakub Jelinek |
30f486 |
my $stateargnum = $argnum++;
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
print qq| char state\[108\];\n|;
|
|
Jakub Jelinek |
30f486 |
@@ -689,8 +681,8 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($arg->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movlps 0+%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movhps 8+%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movlps %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movhps %H$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($arg->{type} eq "st")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
@@ -803,8 +795,8 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($result->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movlps %%$result->{register}, 0+%$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movhps %%$result->{register}, 8+%$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movlps %%$result->{register}, %$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movhps %%$result->{register}, %H$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($result->{type} eq "st")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
@@ -852,11 +844,16 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w)$/)
|
|
Jakub Jelinek |
30f486 |
+ if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w|r(8|16|32|64)|mm)$/)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
print qq|$prefix\"=m\" \($result->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
$prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
+ elsif ($result->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
+ {
|
|
Jakub Jelinek |
30f486 |
+ print qq|$prefix\"=o\" \($result->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ $prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
+ }
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
print qq|\n|;
|
|
Jakub Jelinek |
30f486 |
@@ -867,20 +864,18 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
if (defined($arg->{name}))
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- print qq|$prefix\"m\" \($arg->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ if ($arg->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
+ {
|
|
Jakub Jelinek |
30f486 |
+ print qq|$prefix\"o\" \($arg->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ }
|
|
Jakub Jelinek |
30f486 |
+ else
|
|
Jakub Jelinek |
30f486 |
+ {
|
|
Jakub Jelinek |
30f486 |
+ print qq|$prefix\"m\" \($arg->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ }
|
|
Jakub Jelinek |
30f486 |
$prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
- foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(r(8|16|32|64)|mm|xmm)$/)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- print qq|$prefix\"m\" \($result->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
- $prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
-
|
|
Jakub Jelinek |
30f486 |
print qq|$prefix\"m\" \(state[0]\)\n|;
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
$prefix = " : ";
|
|
Jakub Jelinek |
30f486 |
--- valgrind/none/tests/x86/gen_insn_test.pl.jj 2010-10-20 22:19:35.000000000 +0200
|
|
Jakub Jelinek |
30f486 |
+++ valgrind/none/tests/x86/gen_insn_test.pl 2011-02-22 18:30:27.750683267 +0100
|
|
Jakub Jelinek |
30f486 |
@@ -605,7 +605,7 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w)$/)
|
|
Jakub Jelinek |
30f486 |
+ if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w|r(8|16|32)|mm|xmm)$/)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
$result->{argnum} = $argnum++;
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
@@ -619,14 +619,6 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
- foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(r(8|16|32)|mm|xmm)$/)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- $result->{argnum} = $argnum++;
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
-
|
|
Jakub Jelinek |
30f486 |
my $stateargnum = $argnum++;
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
print qq| char state\[108\];\n|;
|
|
Jakub Jelinek |
30f486 |
@@ -658,8 +650,8 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($arg->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movlps 0%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movhps 8%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movlps %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movhps %H$arg->{argnum}, %%$arg->{register}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($arg->{type} eq "st")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
@@ -767,8 +759,8 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($result->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movlps %%$result->{register}, 0%$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
- print qq| \"movhps %%$result->{register}, 8%$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movlps %%$result->{register}, %$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
+ print qq| \"movhps %%$result->{register}, %H$result->{argnum}\\n\"\n|;
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
elsif ($result->{type} eq "st")
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
@@ -817,11 +809,16 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w)$/)
|
|
Jakub Jelinek |
30f486 |
+ if ($result->{type} =~ /^(m(8|16|32|64|128)|st|eflags|fpu[cs]w|r(8|16|32)|mm)$/)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
print qq|$prefix\"=m\" \($result->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
$prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
+ elsif ($result->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
+ {
|
|
Jakub Jelinek |
30f486 |
+ print qq|$prefix\"=o\" \($result->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ $prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
+ }
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
print qq|\n|;
|
|
Jakub Jelinek |
30f486 |
@@ -832,20 +829,18 @@ while (<>)
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
if (defined($arg->{name}))
|
|
Jakub Jelinek |
30f486 |
{
|
|
Jakub Jelinek |
30f486 |
- print qq|$prefix\"m\" \($arg->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ if ($arg->{type} eq "xmm")
|
|
Jakub Jelinek |
30f486 |
+ {
|
|
Jakub Jelinek |
30f486 |
+ print qq|$prefix\"o\" \($arg->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ }
|
|
Jakub Jelinek |
30f486 |
+ else
|
|
Jakub Jelinek |
30f486 |
+ {
|
|
Jakub Jelinek |
30f486 |
+ print qq|$prefix\"m\" \($arg->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
+ }
|
|
Jakub Jelinek |
30f486 |
$prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
}
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
- foreach my $result (@results)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- if ($result->{type} =~ /^(r(8|16|32)|mm|xmm)$/)
|
|
Jakub Jelinek |
30f486 |
- {
|
|
Jakub Jelinek |
30f486 |
- print qq|$prefix\"m\" \($result->{name}\)|;
|
|
Jakub Jelinek |
30f486 |
- $prefix = ", ";
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
- }
|
|
Jakub Jelinek |
30f486 |
-
|
|
Jakub Jelinek |
30f486 |
print qq|$prefix\"m\" \(state[0]\)\n|;
|
|
Jakub Jelinek |
30f486 |
|
|
Jakub Jelinek |
30f486 |
$prefix = " : ";
|