X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fperlasm%2Fx86masm.pl;h=2dcd3f79f6ed23fcd2f52fd0f987f0f4fa2a7c96;hb=33388b44b67145af2181b1e9528c381c8ea0d1b6;hp=3365114cd08f635ceebe8896d54284a8812614a6;hpb=e303f55fc7dcfce113d71e0ab9652c69fb1ec36d;p=oweals%2Fopenssl.git diff --git a/crypto/perlasm/x86masm.pl b/crypto/perlasm/x86masm.pl index 3365114cd0..2dcd3f79f6 100644 --- a/crypto/perlasm/x86masm.pl +++ b/crypto/perlasm/x86masm.pl @@ -1,4 +1,11 @@ -#!/usr/bin/env perl +#! /usr/bin/env perl +# Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved. +# +# Licensed under the Apache License 2.0 (the "License"). You may not use +# this file except in compliance with the License. You can obtain a copy +# in the file LICENSE in the source distribution or at +# https://www.openssl.org/source/license.html + package x86masm; @@ -14,11 +21,15 @@ sub ::generic { my ($opcode,@arg)=@_; # fix hexadecimal constants - for (@arg) { s/0x([0-9a-f]+)/0$1h/oi; } - - # fix xmm references - $arg[0] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[1]=~/\bxmm[0-7]\b/i); - $arg[1] =~ s/\b[A-Z]+WORD\s+PTR/XMMWORD PTR/i if ($arg[0]=~/\bxmm[0-7]\b/i); + for (@arg) { s/(?