diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-08 17:20:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-08 18:52:10 -0700 |
commit | 6efa130aaf02ef6b5ae838308eb2a85e70db2858 (patch) | |
tree | c0e568ef9fe4cf691536f3153a50ebe3c6143681 /test/emcc_hello_world.fromasm.imprecise | |
parent | d30b98d47697daa167333db66ac0fe3d8a693eae (diff) | |
download | binaryen-6efa130aaf02ef6b5ae838308eb2a85e70db2858.tar.gz binaryen-6efa130aaf02ef6b5ae838308eb2a85e70db2858.tar.bz2 binaryen-6efa130aaf02ef6b5ae838308eb2a85e70db2858.zip |
optimize llvm.cttz.i32 into i32.ctz
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r-- | test/emcc_hello_world.fromasm.imprecise | 98 |
1 files changed, 2 insertions, 96 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise index fc4418930..52c1444b6 100644 --- a/test/emcc_hello_world.fromasm.imprecise +++ b/test/emcc_hello_world.fromasm.imprecise @@ -28550,100 +28550,6 @@ ) ) ) - (func $_llvm_cttz_i32 (param $x i32) (result i32) - (local $ret i32) - (if - (i32.lt_s - (set_local $ret - (i32.load8_s - (i32.add - (i32.load - (i32.const 40) - ) - (i32.and - (get_local $x) - (i32.const 255) - ) - ) - ) - ) - (i32.const 8) - ) - (return - (get_local $ret) - ) - ) - (if - (i32.lt_s - (set_local $ret - (i32.load8_s - (i32.add - (i32.load - (i32.const 40) - ) - (i32.and - (i32.shr_s - (get_local $x) - (i32.const 8) - ) - (i32.const 255) - ) - ) - ) - ) - (i32.const 8) - ) - (return - (i32.add - (get_local $ret) - (i32.const 8) - ) - ) - ) - (if - (i32.lt_s - (set_local $ret - (i32.load8_s - (i32.add - (i32.load - (i32.const 40) - ) - (i32.and - (i32.shr_s - (get_local $x) - (i32.const 16) - ) - (i32.const 255) - ) - ) - ) - ) - (i32.const 8) - ) - (return - (i32.add - (get_local $ret) - (i32.const 16) - ) - ) - ) - (return - (i32.add - (i32.load8_s - (i32.add - (i32.load - (i32.const 40) - ) - (i32.shr_u - (get_local $x) - (i32.const 24) - ) - ) - ) - (i32.const 24) - ) - ) - ) (func $___muldsi3 (param $$a i32) (param $$b i32) (result i32) (local $$8 i32) (local $$6 i32) @@ -29578,7 +29484,7 @@ (set_local $$_0$0 (i32.shr_u (get_local $$n_sroa_1_4_extract_trunc) - (call $_llvm_cttz_i32 + (i32.ctz (get_local $$d_sroa_1_4_extract_trunc) ) ) @@ -30053,7 +29959,7 @@ ) (block (set_local $$78 - (call $_llvm_cttz_i32 + (i32.ctz (get_local $$d_sroa_0_0_extract_trunc) ) ) |