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 in the Baseline JIT if we load from a Float32 array that contains a weirdly formatted NaN.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29-4587521
30NaN
31PASS "" + floatView[0] is "NaN"
32NaN
33PASS "" + floatView[0] is "NaN"
34NaN
35PASS "" + floatView[0] is "NaN"
36NaN
37PASS "" + floatView[0] is "NaN"
38NaN
39PASS "" + floatView[0] is "NaN"
40NaN
41PASS "" + floatView[0] is "NaN"
42NaN
43PASS "" + floatView[0] is "NaN"
44NaN
45PASS "" + floatView[0] is "NaN"
46NaN
47PASS "" + floatView[0] is "NaN"
48NaN
49PASS "" + floatView[0] is "NaN"
50NaN
51PASS "" + floatView[0] is "NaN"
52NaN
53PASS "" + floatView[0] is "NaN"
54NaN
55PASS "" + floatView[0] is "NaN"
56NaN
57PASS "" + floatView[0] is "NaN"
58NaN
59PASS "" + floatView[0] is "NaN"
60NaN
61PASS "" + floatView[0] is "NaN"
62NaN
63PASS "" + floatView[0] is "NaN"
64NaN
65PASS "" + floatView[0] is "NaN"
66NaN
67PASS "" + floatView[0] is "NaN"
68NaN
69PASS "" + floatView[0] is "NaN"
70NaN
71PASS "" + floatView[0] is "NaN"
72NaN
73PASS "" + floatView[0] is "NaN"
74NaN
75PASS "" + floatView[0] is "NaN"
76NaN
77PASS "" + floatView[0] is "NaN"
78NaN
79PASS "" + floatView[0] is "NaN"
80NaN
81PASS "" + floatView[0] is "NaN"
82NaN
83PASS "" + floatView[0] is "NaN"
84NaN
85PASS "" + floatView[0] is "NaN"
86NaN
87PASS "" + floatView[0] is "NaN"
88NaN
89PASS "" + floatView[0] is "NaN"
90NaN
91PASS "" + floatView[0] is "NaN"
92NaN
93PASS "" + floatView[0] is "NaN"
94NaN
95PASS "" + floatView[0] is "NaN"
96NaN
97PASS "" + floatView[0] is "NaN"
98NaN
99PASS "" + floatView[0] is "NaN"
100NaN
101PASS "" + floatView[0] is "NaN"
102NaN
103PASS "" + floatView[0] is "NaN"
104NaN
105PASS "" + floatView[0] is "NaN"
106NaN
107PASS "" + floatView[0] is "NaN"
108NaN
109PASS "" + floatView[0] is "NaN"
110NaN
111PASS "" + floatView[0] is "NaN"
112NaN
113PASS "" + floatView[0] is "NaN"
114NaN
115PASS "" + floatView[0] is "NaN"
116NaN
117PASS "" + floatView[0] is "NaN"
118NaN
119PASS "" + floatView[0] is "NaN"
120NaN
121PASS "" + floatView[0] is "NaN"
122NaN
123PASS "" + floatView[0] is "NaN"
124NaN
125PASS "" + floatView[0] is "NaN"
126NaN
127PASS "" + floatView[0] is "NaN"
128NaN
129PASS "" + floatView[0] is "NaN"
130NaN
131PASS "" + floatView[0] is "NaN"
132NaN
133PASS "" + floatView[0] is "NaN"
134NaN
135PASS "" + floatView[0] is "NaN"
136NaN
137PASS "" + floatView[0] is "NaN"
138NaN
139PASS "" + floatView[0] is "NaN"
140NaN
141PASS "" + floatView[0] is "NaN"
142NaN
143PASS "" + floatView[0] is "NaN"
144NaN
145PASS "" + floatView[0] is "NaN"
146NaN
147PASS "" + floatView[0] is "NaN"
148NaN
149PASS "" + floatView[0] is "NaN"
150NaN
151PASS "" + floatView[0] is "NaN"
152NaN
153PASS "" + floatView[0] is "NaN"
154NaN
155PASS "" + floatView[0] is "NaN"
156NaN
157PASS "" + floatView[0] is "NaN"
158NaN
159PASS "" + floatView[0] is "NaN"
160NaN
161PASS "" + floatView[0] is "NaN"
162NaN
163PASS "" + floatView[0] is "NaN"
164NaN
165PASS "" + floatView[0] is "NaN"
166NaN
167PASS "" + floatView[0] is "NaN"
168NaN
169PASS "" + floatView[0] is "NaN"
170NaN
171PASS "" + floatView[0] is "NaN"
172NaN
173PASS "" + floatView[0] is "NaN"
174NaN
175PASS "" + floatView[0] is "NaN"
176NaN
177PASS "" + floatView[0] is "NaN"
178NaN
179PASS "" + floatView[0] is "NaN"
180NaN
181PASS "" + floatView[0] is "NaN"
182NaN
183PASS "" + floatView[0] is "NaN"
184NaN
185PASS "" + floatView[0] is "NaN"
186NaN
187PASS "" + floatView[0] is "NaN"
188NaN
189PASS "" + floatView[0] is "NaN"
190NaN
191PASS "" + floatView[0] is "NaN"
192NaN
193PASS "" + floatView[0] is "NaN"
194NaN
195PASS "" + floatView[0] is "NaN"
196NaN
197PASS "" + floatView[0] is "NaN"
198NaN
199PASS "" + floatView[0] is "NaN"
200NaN
201PASS "" + floatView[0] is "NaN"
202NaN
203PASS "" + floatView[0] is "NaN"
204NaN
205PASS "" + floatView[0] is "NaN"
206NaN
207PASS "" + floatView[0] is "NaN"
208NaN
209PASS "" + floatView[0] is "NaN"
210NaN
211PASS "" + floatView[0] is "NaN"
212NaN
213PASS "" + floatView[0] is "NaN"
214NaN
215PASS "" + floatView[0] is "NaN"
216NaN
217PASS "" + floatView[0] is "NaN"
218NaN
219PASS "" + floatView[0] is "NaN"
220NaN
221PASS "" + floatView[0] is "NaN"
222NaN
223PASS "" + floatView[0] is "NaN"
224NaN
225PASS "" + floatView[0] is "NaN"
226NaN
227PASS "" + floatView[0] is "NaN"
228NaN
229PASS "" + floatView[0] is "NaN"
230I didn't crash, which is a good thing.
231PASS successfullyParsed is true
232
233TEST COMPLETE
234
235