1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug729573.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +function TestCase(n, d, e, a) 1.5 +function writeHeaderToLog( string ) {} 1.6 +var SECTION = "11.7.2"; 1.7 +for ( power = 0; power <= 32; power++ ) { 1.8 + shiftexp = Math.pow( 2, power ); 1.9 + for ( addexp = 0; addexp <= 32; addexp++ ) { 1.10 + new TestCase( SECTION, SignedRightShift( shiftexp, addexp ), shiftexp >> addexp ); 1.11 + } 1.12 +} 1.13 +function ToInt32BitString( n ) { 1.14 + var b = ""; 1.15 + return b; 1.16 +} 1.17 +function SignedRightShift( s, a ) { 1.18 + s = ToInt32BitString( s ); 1.19 + s = s.substring( 0, 1 | Math && 0xffffffff + 2 ); 1.20 +}