OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --validate-asm --allow-natives-syntax | 5 // Flags: --validate-asm --allow-natives-syntax --fast-validate-asm |
6 | 6 |
7 var selectedTest = undefined; | 7 var selectedTest = undefined; |
8 //selectedTest = 16; | 8 //selectedTest = 16; |
9 | 9 |
10 function skip(a) { | 10 function skip(a) { |
11 return selectedTest != undefined ? a != selectedTest : false; | 11 return selectedTest != undefined ? a != selectedTest : false; |
12 } | 12 } |
13 | 13 |
14 const assign_in_stmt = [ | 14 const assign_in_stmt = [ |
15 "if (E) =", | 15 "if (E) =", |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 expect(asm_module); | 142 expect(asm_module); |
143 } | 143 } |
144 | 144 |
145 function expect(module) { module.main(0, 0, 0); print(" ok"); return true; } | 145 function expect(module) { module.main(0, 0, 0); print(" ok"); return true; } |
146 } | 146 } |
147 | 147 |
148 DoTheTests("(i32 | 0)", "i32 = 0", "void_func()"); | 148 DoTheTests("(i32 | 0)", "i32 = 0", "void_func()"); |
149 DoTheTests("G", "G = 0", "void_func()"); | 149 DoTheTests("G", "G = 0", "void_func()"); |
150 DoTheTests("G", "G = 0", "G"); | 150 DoTheTests("G", "G = 0", "G"); |
151 DoTheTests("(M[0] | 0)", "M[0] = 0", "void_func()"); | 151 DoTheTests("(M[0] | 0)", "M[0] = 0", "void_func()"); |
OLD | NEW |