]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
s390: Add testcases for ESDTR and EXDTR.
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 27 Dec 2012 20:17:32 +0000 (20:17 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 27 Dec 2012 20:17:32 +0000 (20:17 +0000)
Patch by Maran Pakkirisamy (maranp@linux.vnet.ibm.com).
Part of fixing BZ #307113.

[ r13211 was also implemented by Maran. ]

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

none/tests/s390x/dfp-2.c
none/tests/s390x/dfp-2.stdout.exp

index 6a1c41da2a8856431105b09ff9265946f82baaec..25731c284a7834a92cb13166d4ff3b9a4c458b8a 100644 (file)
@@ -6,7 +6,6 @@
    - load and test 64/128 bit
 */
 
-#if 0 //fixs390: enable it when Iop_ExtractSigD64/D128 is available
 void esdtr(_Decimal64 in)
 {
   long out;
@@ -26,7 +25,6 @@ void esxtr(_Decimal128 in)
   DFP_VAL_PRINT(in, _Decimal128);
   printf(" -> %ld\n", out);
 }
-#endif
 
 void ltdtr(_Decimal64 in)
 {
@@ -60,14 +58,13 @@ int main() {
   _Decimal64 d64 = 50.0005DD;
   _Decimal128 d128 = 50.0005DL;
 
-#if 0 //fixs390: enable it when Iop_ExtractSigD64/D128 is available
   esdtr(d64);
   esdtr(-d64);
   esdtr(0.DD);
   esxtr(d128);
   esxtr(-d128);
   esxtr(0.DL);
-#endif
+
   ltdtr(d64);
   ltdtr(-d64);
   ltdtr(0.0DD);
index 78fc516ba5e4012f6fb0f83f93fea877bbf1cbf8..e703ce424fce64a06297d7516b40c00806cb16e2 100644 (file)
@@ -1,3 +1,9 @@
+ESDTR 22280000000a0005 -> 6
+ESDTR a2280000000a0005 -> 6
+ESDTR 2238000000000000 -> 0
+ESXTR 2207000000000000000a0005 -> 6
+ESXTR a207000000000000000a0005 -> 6
+ESXTR 220800000000000000000000 -> 0
 LTDTR 22280000000a0005 -> 2
 LTDTR a2280000000a0005 -> 1
 LTDTR 2234000000000000 -> 0