|
1 function TestCase(n, d, e, a) |
|
2 function writeHeaderToLog( string ) {} |
|
3 var SECTION = "11.7.2"; |
|
4 for ( power = 0; power <= 32; power++ ) { |
|
5 shiftexp = Math.pow( 2, power ); |
|
6 for ( addexp = 0; addexp <= 32; addexp++ ) { |
|
7 new TestCase( SECTION, SignedRightShift( shiftexp, addexp ), shiftexp >> addexp ); |
|
8 } |
|
9 } |
|
10 function ToInt32BitString( n ) { |
|
11 var b = ""; |
|
12 return b; |
|
13 } |
|
14 function SignedRightShift( s, a ) { |
|
15 s = ToInt32BitString( s ); |
|
16 s = s.substring( 0, 1 | Math && 0xffffffff + 2 ); |
|
17 } |