summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-10 10:47:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-10 10:49:12 -0700
commit3158ada0ee9f5e3d2daf019cfda545498b55285b (patch)
tree3dca71c6f810fc809f541188a66fceb9ecd43d98 /test/unit.asm.js
parent2427725215ad4a9a52c89c7d791a9277cc23db14 (diff)
downloadbinaryen-3158ada0ee9f5e3d2daf019cfda545498b55285b.tar.gz
binaryen-3158ada0ee9f5e3d2daf019cfda545498b55285b.tar.bz2
binaryen-3158ada0ee9f5e3d2daf019cfda545498b55285b.zip
sort locals by number of total copies
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r--test/unit.asm.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index cc4d6880c..c87bb62c6 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -391,6 +391,30 @@ function asm(global, env, buffer) {
}
}
+ function loophi2() {
+ var jnc = 0, i = 0, i$lcssa = 0, temp = 0, j = 0;
+ i = 0;
+ L7: while(1) {
+ j = 0;
+ while(1) {
+ temp = j;
+ if (1) {
+ if (temp) {
+ i$lcssa = i;
+ break L7;
+ }
+ }
+ jnc = j + 1 | 0;
+ if (jnc) {
+ j = jnc;
+ } else {
+ break;
+ }
+ }
+ }
+ return i$lcssa | 0
+ }
+
var FUNCTION_TABLE_a = [ z, big_negative, z, z ];
var FUNCTION_TABLE_b = [ w, w, importedDoubles, w ];
var FUNCTION_TABLE_c = [ z, cneg ];