]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Initializing destination reg for MoveIns test for MIPS.
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 22 Jun 2012 13:44:04 +0000 (13:44 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 22 Jun 2012 13:44:04 +0000 (13:44 +0000)
The test none/tests/mips32/MoveIns.c did not initialize destination register,
and that is important for movn.s and movn.d instructions. This improves the
test as we will get the same stdout with different compilers and options now.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12661

none/tests/mips32/MoveIns.c
none/tests/mips32/MoveIns.stdout.exp
none/tests/mips32/MoveIns.stdout.exp-BE

index e8cf2ae9042add29de2f3a35c4454461c1654240..53ec672162b9c89022d6cc2765dbf8082b995d58 100644 (file)
@@ -214,6 +214,7 @@ unsigned int mem[] = {
      "move $" #RT ", %3\n\t" \
      "move $t0, %2\n\t" \
      "lwc1 $" #FS ", "#offset"($t0)\n\t" \
+     "mtc1 $0, $" #FD "\n\t" \
      instruction "\n\t" \
      "mov.s %0, $" #FD"\n\t" \
      "mfc1 %1, $" #FD"\n\t" \
@@ -234,6 +235,8 @@ unsigned int mem[] = {
      "move $" #RT ", %3\n\t" \
      "move $t0, %2\n\t" \
      "ldc1 $" #FS ", "#offset"($t0)\n\t" \
+     "mtc1 $0, $" #FD "\n\t" \
+     "mtc1 $0, $" #FD + 1"\n\t" \
      instruction "\n\t" \
      "mov.d %0, $" #FD"\n\t" \
      "mfc1 %1, $" #FD"\n\t" \
index b9da230b25dee90fcbffabff90ec19c13510864c..70306eee6844bcc2577e0b52294d9d5bf4d74fed 100644 (file)
@@ -190,36 +190,36 @@ movf.d $f4, $f6, $fcc0 :: out: 0x4095a266 0x66666666, cc: 0
 movf.d $f4, $f6, $fcc0 :: out: 0xbff00000 0x0, cc: 0
 movf.d $f4, $f6, $fcc0 :: out: 0x3ff00000 0x0, cc: 0
 MOVN.S
-movn.s $f0, $f2, $t3 :: fs rt 0x1
+movn.s $f0, $f2, $t3 :: fs rt 0x0
 movn.s $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.s $f0, $f2, $t3 :: fs rt 0x40400000
 movn.s $f0, $f2, $t3 :: fs rt 0xbf800000
 movn.s $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.s $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.s $f0, $f2, $t3 :: fs rt 0x44ad1333
+movn.s $f0, $f2, $t3 :: fs rt 0x0
+movn.s $f0, $f2, $t3 :: fs rt 0x0
 movn.s $f0, $f2, $t3 :: fs rt 0xc5b4d3c3
 movn.s $f0, $f2, $t3 :: fs rt 0x44db0000
 movn.s $f0, $f2, $t3 :: fs rt 0x3b210e02
 movn.s $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.s $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.s $f0, $f2, $t3 :: fs rt 0x322bcc77
+movn.s $f0, $f2, $t3 :: fs rt 0x0
+movn.s $f0, $f2, $t3 :: fs rt 0x0
 movn.s $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.s $f0, $f2, $t3 :: fs rt 0x42080079
 movn.s $f0, $f2, $t3 :: fs rt 0x4732da7a
 MOVN.D
-movn.d $f0, $f2, $t3 :: fs rt 0x4732da7a
+movn.d $f0, $f2, $t3 :: fs rt 0x0
 movn.d $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.d $f0, $f2, $t3 :: fs rt 0x40400000
 movn.d $f0, $f2, $t3 :: fs rt 0xbf800000
 movn.d $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.d $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.d $f0, $f2, $t3 :: fs rt 0x44ad1333
+movn.d $f0, $f2, $t3 :: fs rt 0x0
+movn.d $f0, $f2, $t3 :: fs rt 0x0
 movn.d $f0, $f2, $t3 :: fs rt 0xc5b4d3c3
 movn.d $f0, $f2, $t3 :: fs rt 0x44db0000
 movn.d $f0, $f2, $t3 :: fs rt 0x3b210e02
 movn.d $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.d $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.d $f0, $f2, $t3 :: fs rt 0x322bcc77
+movn.d $f0, $f2, $t3 :: fs rt 0x0
+movn.d $f0, $f2, $t3 :: fs rt 0x0
 movn.d $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.d $f0, $f2, $t3 :: fs rt 0x42080079
 movn.d $f0, $f2, $t3 :: fs rt 0x4732da7a
@@ -311,15 +311,15 @@ movz.s $f0, $f2, $t3 :: fs rt 0x0
 movz.s $f0, $f2, $t3 :: fs rt 0xc0e96d19
 movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
 movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
 movz.s $f0, $f2, $t3 :: fs rt 0xc872bcb1
 movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
 MOVZ.D
 movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0x0
@@ -328,12 +328,12 @@ movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0xc0e96d19
 movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0xc872bcb1
 movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
index ee1a16bf7db95f9e31f7acb2733195fd4e370b82..2ff43c29b3548a290350e61309ecf6f18379d28c 100644 (file)
@@ -190,36 +190,36 @@ movf.d $f4, $f6, $fcc0 :: out: 0x66666666 0x4095a266, cc: 0
 movf.d $f4, $f6, $fcc0 :: out: 0x0 0xbff00000, cc: 0
 movf.d $f4, $f6, $fcc0 :: out: 0x0 0x3ff00000, cc: 0
 MOVN.S
-movn.s $f0, $f2, $t3 :: fs rt 0x1
+movn.s $f0, $f2, $t3 :: fs rt 0x0
 movn.s $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.s $f0, $f2, $t3 :: fs rt 0x40400000
 movn.s $f0, $f2, $t3 :: fs rt 0xbf800000
 movn.s $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.s $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.s $f0, $f2, $t3 :: fs rt 0x44ad1333
+movn.s $f0, $f2, $t3 :: fs rt 0x0
+movn.s $f0, $f2, $t3 :: fs rt 0x0
 movn.s $f0, $f2, $t3 :: fs rt 0xc5b4d3c3
 movn.s $f0, $f2, $t3 :: fs rt 0x44db0000
 movn.s $f0, $f2, $t3 :: fs rt 0x3b210e02
 movn.s $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.s $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.s $f0, $f2, $t3 :: fs rt 0x322bcc77
+movn.s $f0, $f2, $t3 :: fs rt 0x0
+movn.s $f0, $f2, $t3 :: fs rt 0x0
 movn.s $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.s $f0, $f2, $t3 :: fs rt 0x42080079
 movn.s $f0, $f2, $t3 :: fs rt 0x4732da7a
 MOVN.D
-movn.d $f0, $f2, $t3 :: fs rt 0x4732da7a
+movn.d $f0, $f2, $t3 :: fs rt 0x0
 movn.d $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.d $f0, $f2, $t3 :: fs rt 0x40400000
 movn.d $f0, $f2, $t3 :: fs rt 0xbf800000
 movn.d $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.d $f0, $f2, $t3 :: fs rt 0x44ad1333
-movn.d $f0, $f2, $t3 :: fs rt 0x44ad1333
+movn.d $f0, $f2, $t3 :: fs rt 0x0
+movn.d $f0, $f2, $t3 :: fs rt 0x0
 movn.d $f0, $f2, $t3 :: fs rt 0xc5b4d3c3
 movn.d $f0, $f2, $t3 :: fs rt 0x44db0000
 movn.d $f0, $f2, $t3 :: fs rt 0x3b210e02
 movn.d $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.d $f0, $f2, $t3 :: fs rt 0x322bcc77
-movn.d $f0, $f2, $t3 :: fs rt 0x322bcc77
+movn.d $f0, $f2, $t3 :: fs rt 0x0
+movn.d $f0, $f2, $t3 :: fs rt 0x0
 movn.d $f0, $f2, $t3 :: fs rt 0x43e41fde
 movn.d $f0, $f2, $t3 :: fs rt 0x42080079
 movn.d $f0, $f2, $t3 :: fs rt 0x4732da7a
@@ -311,15 +311,15 @@ movz.s $f0, $f2, $t3 :: fs rt 0x0
 movz.s $f0, $f2, $t3 :: fs rt 0xc0e96d19
 movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
 movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.s $f0, $f2, $t3 :: fs rt 0x4e6e6b28
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
 movz.s $f0, $f2, $t3 :: fs rt 0xc872bcb1
 movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.s $f0, $f2, $t3 :: fs rt 0xc732da7a
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
+movz.s $f0, $f2, $t3 :: fs rt 0x0
 MOVZ.D
 movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0x0
@@ -328,12 +328,12 @@ movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0xc0e96d19
 movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
-movz.d $f0, $f2, $t3 :: fs rt 0x4e6e6b28
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
 movz.d $f0, $f2, $t3 :: fs rt 0xc872bcb1
 movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
-movz.d $f0, $f2, $t3 :: fs rt 0xc732da7a
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0
+movz.d $f0, $f2, $t3 :: fs rt 0x0