Harmonize s390x assembler modules with "catch-all" rules from commit#19749.
authorAndy Polyakov <appro@openssl.org>
Fri, 9 Jul 2010 12:11:12 +0000 (12:11 +0000)
committerAndy Polyakov <appro@openssl.org>
Fri, 9 Jul 2010 12:11:12 +0000 (12:11 +0000)
crypto/aes/asm/aes-s390x.pl
crypto/bn/asm/s390x-mont.pl
crypto/sha/asm/sha1-s390x.pl
crypto/sha/asm/sha512-s390x.pl

index 7e018892982ced4c99b170ac3641d09d59735bca..1fd91ca1b8a80b17055f5c95935da29b8857fab8 100644 (file)
@@ -50,6 +50,9 @@
 # it was measured to be ~6.6x. It's less than previously mentioned 8x,
 # because software implementation was optimized.
 
+while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {}
+open STDOUT,">$output";
+
 $softonly=0;   # allow hardware support
 
 $t0="%r0";     $mask="%r0";
@@ -1337,3 +1340,4 @@ ___
 
 $code =~ s/\`([^\`]*)\`/eval $1/gem;
 print $code;
+close STDOUT;  # force flush
index d23251033b003782b0ada3aefb35d3b0c32b0cf2..502fa2e01fdecf09bd729469c96eddf6be07f289 100644 (file)
@@ -32,6 +32,9 @@
 # Reschedule to minimize/avoid Address Generation Interlock hazard,
 # make inner loops counter-based.
 
+while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {}
+open STDOUT,">$output";
+
 $mn0="%r0";
 $num="%r1";
 
index 4b17848287a12e598594fec86a88fab7c6953ac2..659afffc08da462232ae675129419d6e91ff6ae5 100644 (file)
@@ -23,7 +23,7 @@
 
 $kimdfunc=1;   # magic function code for kimd instruction
 
-$output=shift;
+while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {}
 open STDOUT,">$output";
 
 $K_00_39="%r0"; $K=$K_00_39;
index e7ef2d5a9f59dd2c810ee799e7952dbee667cc43..9d68215e2bed82c6f7e6c79a8b1a5be483b9d1fc 100644 (file)
@@ -44,7 +44,7 @@ $tbl="%r13";
 $T1="%r14";
 $sp="%r15";
 
-$output=shift;
+while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {}
 open STDOUT,">$output";
 
 if ($output =~ /512/) {