Subject: RE: [rohc] Sigcomp Torture Test discrepancy

From: "Chintan Shah" <[email-masked]>
Date: Tue, 7 Feb 2006 12:57:47 +0530

Hi Siddique,
 
Torture Test Case Reference document (point 3) says : 
 
" 3. The UDVM registers byte_copy_left and byte_copy_right are used to
store the results of the bit manipulation operations.  Since no byte
copying is taking place these registers should behave in exactly the
same manner as ordinary UDVM memory addresses. "
 
It is very clearly stated that, you should not consider variables a & b
as byte_copy_left & byte_copy_right registers. This registers are only
referenced while performing memory management & I/O related operations
like COPY / LOAD / INPUT etc.
 
You should not be checking this registers for the arithmetic
operations...
 
Cheers,
Chintan
---------------------------------------------------------------
Chintan Shah
LG Soft India, Cherry Hills 
Embassy Golf Link Park | Off Intermediate Ring Road
Bangalore, India.
 
(O): (080) 5515 5000 x 5304
M: (+91)  9945 985819
 
"Start by doing what is necessary,
then what is possible, and
suddenly you are doing the impossible"
                                                    -St. Francis of
Assisi
----------------------------------------------------------------

________________________________

From: [email-masked] [mailto:[email-masked]] On Behalf Of
Sofiur Rahman Siddique (sent by Nabble.com)
Sent: Tuesday, January 31, 2006 6:15 PM
To: [email-masked]
Subject: Re: [rohc] Sigcomp Torture Test discrepancy

Hi All, 

I am facing problem in the first test itself. 

 at (64) 
 :a                              pad (2) 
 :b                              pad (2) 
 at (128) 
 JUMP (start)            ; Jump to address 255 
 at (255) 
 :start 
 AND ($start, 21845)     ; 448 & 21845 = 320 = 0x0140 
 OR ($a, 42)             ; 0 | 42 = 42 = 0x002a 
 NOT ($b)                ; ~0 = 65535 = 0xffff 
 LSHIFT ($a, 3)          ; 42 << 3 = 336 = 0x0150 
 RSHIFT ($b, 65535)      ; 65535 >> 65535 = 0 = 0x0000 

 OUTPUT (64, 4)          ; Output 0x0150 0000 

The OUTPUT instruction tries to output 4 bytes from UDVM memory address
64. 
The current values are 0x0150 and 0x0000. 
These values sets byte_copy_left and byte_copy_right values as 0x0150
and 0x0000 respectively implying byte_copy_left value is greater than
byte_copy_right. 
My code gives an SEGFAULT (violation of rule 8.4) here. 
In most of the torture test cases this is the problem I am facing. 
Can anybody give light to me in the byte copy rule. 

Regards 
Siddique 

________________________________

View this message in context: Re: Sigcomp Torture Test discrepancy
<http://www.nabble.com/Sigcomp-Torture-Test-discrepancy-t787961.html#a26
79064> 
Sent from the IETF - Rohc
<http://www.nabble.com/IETF---Rohc-f13077.html>  forum at Nabble.com. 
#########################################################
THIS EMAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED
RECIPIENT(S) AND MAY CONTAIN CONFIDENTIAL AND PRIVILEGED
INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR
DISTRIBUTION IS PROHIBITED.BEFORE OPENING ANY ATTACHMENTS
PLEASE CHECK FOR VIRUSES AND DEFECTS.IF YOU ARE NOT THE
INTENDED RECIPIENT, PLEASE NOTIFY US IMMEDIATELY BY REPLY
E-MAIL AND DELETE THE ORIGINAL MESSAGE.
##########################################################

_______________________________________________
Rohc mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/rohc