1# Copyright 2013 the V8 project authors. All rights reserved. 2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 1. Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. 9# 2. Redistributions in binary form must reproduce the above copyright 10# notice, this list of conditions and the following disclaimer in the 11# documentation and/or other materials provided with the distribution. 12# 13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY 14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 24Tests what happens when you multiply a big unknown integer with a small known integer and use the result in a bitop. 25 26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29PASS foo(2147483647) is -65536 30PASS foo(2147483647) is -65536 31PASS foo(2147483647) is -65536 32PASS foo(2147483647) is -65536 33PASS foo(2147483647) is -65536 34PASS foo(2147483647) is -65536 35PASS foo(2147483647) is -65536 36PASS foo(2147483647) is -65536 37PASS foo(2147483647) is -65536 38PASS foo(2147483647) is -65536 39PASS foo(2147483647) is -65536 40PASS foo(2147483647) is -65536 41PASS foo(2147483647) is -65536 42PASS foo(2147483647) is -65536 43PASS foo(2147483647) is -65536 44PASS foo(2147483647) is -65536 45PASS foo(2147483647) is -65536 46PASS foo(2147483647) is -65536 47PASS foo(2147483647) is -65536 48PASS foo(2147483647) is -65536 49PASS foo(2147483647) is -65536 50PASS foo(2147483647) is -65536 51PASS foo(2147483647) is -65536 52PASS foo(2147483647) is -65536 53PASS foo(2147483647) is -65536 54PASS foo(2147483647) is -65536 55PASS foo(2147483647) is -65536 56PASS foo(2147483647) is -65536 57PASS foo(2147483647) is -65536 58PASS foo(2147483647) is -65536 59PASS foo(2147483647) is -65536 60PASS foo(2147483647) is -65536 61PASS foo(2147483647) is -65536 62PASS foo(2147483647) is -65536 63PASS foo(2147483647) is -65536 64PASS foo(2147483647) is -65536 65PASS foo(2147483647) is -65536 66PASS foo(2147483647) is -65536 67PASS foo(2147483647) is -65536 68PASS foo(2147483647) is -65536 69PASS foo(2147483647) is -65536 70PASS foo(2147483647) is -65536 71PASS foo(2147483647) is -65536 72PASS foo(2147483647) is -65536 73PASS foo(2147483647) is -65536 74PASS foo(2147483647) is -65536 75PASS foo(2147483647) is -65536 76PASS foo(2147483647) is -65536 77PASS foo(2147483647) is -65536 78PASS foo(2147483647) is -65536 79PASS foo(2147483647) is -65536 80PASS foo(2147483647) is -65536 81PASS foo(2147483647) is -65536 82PASS foo(2147483647) is -65536 83PASS foo(2147483647) is -65536 84PASS foo(2147483647) is -65536 85PASS foo(2147483647) is -65536 86PASS foo(2147483647) is -65536 87PASS foo(2147483647) is -65536 88PASS foo(2147483647) is -65536 89PASS foo(2147483647) is -65536 90PASS foo(2147483647) is -65536 91PASS foo(2147483647) is -65536 92PASS foo(2147483647) is -65536 93PASS foo(2147483647) is -65536 94PASS foo(2147483647) is -65536 95PASS foo(2147483647) is -65536 96PASS foo(2147483647) is -65536 97PASS foo(2147483647) is -65536 98PASS foo(2147483647) is -65536 99PASS foo(2147483647) is -65536 100PASS foo(2147483647) is -65536 101PASS foo(2147483647) is -65536 102PASS foo(2147483647) is -65536 103PASS foo(2147483647) is -65536 104PASS foo(2147483647) is -65536 105PASS foo(2147483647) is -65536 106PASS foo(2147483647) is -65536 107PASS foo(2147483647) is -65536 108PASS foo(2147483647) is -65536 109PASS foo(2147483647) is -65536 110PASS foo(2147483647) is -65536 111PASS foo(2147483647) is -65536 112PASS foo(2147483647) is -65536 113PASS foo(2147483647) is -65536 114PASS foo(2147483647) is -65536 115PASS foo(2147483647) is -65536 116PASS foo(2147483647) is -65536 117PASS foo(2147483647) is -65536 118PASS foo(2147483647) is -65536 119PASS foo(2147483647) is -65536 120PASS foo(2147483647) is -65536 121PASS foo(2147483647) is -65536 122PASS foo(2147483647) is -65536 123PASS foo(2147483647) is -65536 124PASS foo(2147483647) is -65536 125PASS foo(2147483647) is -65536 126PASS foo(2147483647) is -65536 127PASS foo(2147483647) is -65536 128PASS foo(2147483647) is -65536 129PASS successfullyParsed is true 130 131TEST COMPLETE 132 133