File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -890,6 +890,14 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
890
890
wasm::emit_i32_xor (m_code_section, m_al);
891
891
break ;
892
892
};
893
+ case ASR::binopType::BitLShift: {
894
+ wasm::emit_i32_shl (m_code_section, m_al);
895
+ break ;
896
+ };
897
+ case ASR::binopType::BitRShift: {
898
+ wasm::emit_i32_shr_s (m_code_section, m_al);
899
+ break ;
900
+ };
893
901
default : {
894
902
throw CodeGenError (
895
903
" ICE IntegerBinop kind 4: unknown operation" );
@@ -947,6 +955,14 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
947
955
wasm::emit_i64_xor (m_code_section, m_al);
948
956
break ;
949
957
};
958
+ case ASR::binopType::BitLShift: {
959
+ wasm::emit_i64_shl (m_code_section, m_al);
960
+ break ;
961
+ };
962
+ case ASR::binopType::BitRShift: {
963
+ wasm::emit_i64_shr_s (m_code_section, m_al);
964
+ break ;
965
+ };
950
966
default : {
951
967
throw CodeGenError (
952
968
" ICE IntegerBinop kind 8: unknown operation" );
You can’t perform that action at this time.
0 commit comments