[PATCH] test-suite : MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec
robert lytton
robert at xmos.com
Thu Feb 13 11:56:22 PST 2014
Replace stderr with stdout to make deterministic
(xcore does not buffer stdout/stderr)
http://llvm-reviews.chandlerc.com/D2789
Files:
MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c
MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output
MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c
Index: MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c
===================================================================
--- MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c
+++ MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/getblk.c
@@ -129,7 +129,7 @@
if (i>=64)
{
if (!Quiet_Flag)
- fprintf(stderr,"DCT coeff index (i) out of bounds (intra)\n");
+ fprintf(stdout,"DCT coeff index (i) out of bounds (intra)\n");
Fault_Flag = 1;
return;
}
@@ -225,7 +225,7 @@
if (i>=64)
{
if (!Quiet_Flag)
- fprintf(stderr,"DCT coeff index (i) out of bounds (inter)\n");
+ fprintf(stdout,"DCT coeff index (i) out of bounds (inter)\n");
Fault_Flag = 1;
return;
}
@@ -397,7 +397,7 @@
if (i>=64)
{
if (!Quiet_Flag)
- fprintf(stderr,"DCT coeff index (i) out of bounds (intra2)\n");
+ fprintf(stdout,"DCT coeff index (i) out of bounds (intra2)\n");
Fault_Flag = 1;
return;
}
@@ -549,7 +549,7 @@
if (i>=64)
{
if (!Quiet_Flag)
- fprintf(stderr,"DCT coeff index (i) out of bounds (inter2)\n");
+ fprintf(stdout,"DCT coeff index (i) out of bounds (inter2)\n");
Fault_Flag = 1;
return;
}
Index: MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output
===================================================================
--- MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output
+++ MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/mpeg2decode.reference_output
@@ -1,9 +1,14 @@
DCT coeff index (i) out of bounds (intra)
DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_address_increment code
DCT coeff index (i) out of bounds (intra)
DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
+Invalid macroblock_type code
DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
DCT coeff index (i) out of bounds (intra)
DCT coeff index (i) out of bounds (intra)
DCT coeff index (i) out of bounds (inter)
@@ -12,34 +17,29 @@
DCT coeff index (i) out of bounds (inter)
DCT coeff index (i) out of bounds (intra)
DCT coeff index (i) out of bounds (intra)
+Invalid macroblock_type code
+Invalid macroblock_address_increment code
+start_of_slice(): Premature end of picture
saving tmp0.Y
saving tmp0.U
saving tmp0.V
DCT coeff index (i) out of bounds (inter)
+invalid Huffman code in Decode_MPEG1_Non_Intra_Block()
+Invalid motion_vector code (MBA 0, pic 0)
DCT coeff index (i) out of bounds (inter)
+Invalid motion_vector code (MBA 0, pic 0)
+Invalid coded_block_pattern code
saving tmp1.Y
saving tmp1.U
saving tmp1.V
+Invalid coded_block_pattern code
DCT coeff index (i) out of bounds (inter)
+Invalid macroblock_type code
+Invalid macroblock_address_increment code
saving tmp2.Y
saving tmp2.U
saving tmp2.V
saving tmp3.Y
saving tmp3.U
saving tmp3.V
-Invalid macroblock_type code
-Invalid macroblock_address_increment code
-Invalid macroblock_type code
-Invalid macroblock_type code
-Invalid macroblock_type code
-Invalid macroblock_type code
-Invalid macroblock_address_increment code
-start_of_slice(): Premature end of picture
-invalid Huffman code in Decode_MPEG1_Non_Intra_Block()
-Invalid motion_vector code (MBA 0, pic 0)
-Invalid motion_vector code (MBA 0, pic 0)
-Invalid coded_block_pattern code
-Invalid coded_block_pattern code
-Invalid macroblock_type code
-Invalid macroblock_address_increment code
exit 0
Index: MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c
===================================================================
--- MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c
+++ MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec/store.c
@@ -160,7 +160,7 @@
unsigned char *p;
if (!Quiet_Flag)
- fprintf(stderr,"saving %s\n",mybasename(name));
+ fprintf(stdout,"saving %s\n",mybasename(name));
if ((outfile = open(name,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)
{
@@ -222,7 +222,7 @@
strcat(outname,".SIF");
if (!Quiet_Flag)
- fprintf(stderr,"saving %s\n",mybasename(outname));
+ fprintf(stdout,"saving %s\n",mybasename(outname));
if ((outfile = open(outname,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)
{
@@ -315,7 +315,7 @@
strcat(outname,tgaflag ? ".tga" : ".ppm");
if (!Quiet_Flag)
- fprintf(stderr,"saving %s\n",mybasename(outname));
+ fprintf(stdout,"saving %s\n",mybasename(outname));
if ((outfile = open(outname,O_CREAT|O_TRUNC|O_WRONLY|O_BINARY,0666))==-1)
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2789.1.patch
Type: text/x-patch
Size: 4651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/9dae8f24/attachment.bin>
More information about the llvm-commits
mailing list