Unified - adapt the generation of modes assembler to use GENERATE
[openssl.git] / crypto / x86cpuid.pl
index 86772329bc7bd5a2492e59fdddb25e7901b0f6c2..48c4cf204b73b9d849c97b482d5f3edaa6232c40 100644 (file)
@@ -4,6 +4,10 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 push(@INC, "${dir}perlasm", "perlasm");
 require "x86asm.pl";
 
+$output = pop;
+open OUT,">$output";
+*STDOUT=*OUT;
+
 &asm_init($ARGV[0],"x86cpuid");
 
 for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
@@ -487,3 +491,5 @@ my $max = "ebp";
 &hidden("OPENSSL_ia32cap_P");
 
 &asm_finish();
+
+close STDOUT;