perlasm/sparcv9_modes.pl: make it work even with seasoned perl.
authorAndy Polyakov <appro@openssl.org>
Thu, 3 Oct 2013 08:42:11 +0000 (10:42 +0200)
committerAndy Polyakov <appro@openssl.org>
Thu, 3 Oct 2013 08:45:36 +0000 (10:45 +0200)
PR: 3130
(cherry picked from commit 6b2cae0c16631c6c1ccf61080fc2aa9bd1b5ea1b)

crypto/perlasm/sparcv9_modes.pl

index a13ffcec2d1d870eb917c35386d3267266134490..6b47bb1af45e8d232cbd090962ac391cb3d9090f 100644 (file)
@@ -1657,8 +1657,8 @@ sub emit_assembler {
        s/\b(camellia_[^s]+)\s+(%f[0-9]{1,2}),\s*(%f[0-9]{1,2}),\s*(%f[0-9]{1,2})/
                &uncamellia3($1,$2,$3,$4)
         /geo or
-       s/\b(des_\w+)\s+(?<rs1>%f[0-9]{1,2}),\s*(?<rs2>[%fx0-9]+)(,\s*(?<rs3>%f[0-9]{1,2})(,\s*(?<rs4>%f[0-9]{1,2}))?)?/
-               &undes($1,$+{rs1},$+{rs2},$+{rs3},$+{rs4})
+       s/\b(des_\w+)\s+(%f[0-9]{1,2}),\s*([%fx0-9]+)(?:,\s*(%f[0-9]{1,2})(?:,\s*(%f[0-9]{1,2}))?)?/
+               &undes($1,$2,$3,$4,$5)
         /geo or
        s/\b(mov[ds]to\w+)\s+(%f[0-9]{1,2}),\s*(%[goli][0-7])/
                &unmovxtox($1,$2,$3)