mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWasm: Implement bitmask and float conversion instructions
This commit is contained in:
parent
5f154ba372
commit
146646b597
Notes:
github-actions[bot]
2024-07-20 09:18:41 +00:00
Author: https://github.com/dzfrias
Commit: 146646b597
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/719
Reviewed-by: https://github.com/alimpfard
2 changed files with 59 additions and 8 deletions
|
@ -1700,24 +1700,30 @@ void BytecodeInterpreter::interpret(Configuration& configuration, InstructionPoi
|
|||
return pop_and_store_lane_n<32>(configuration, instruction);
|
||||
case Instructions::v128_store64_lane.value():
|
||||
return pop_and_store_lane_n<64>(configuration, instruction);
|
||||
case Instructions::i32x4_trunc_sat_f32x4_s.value():
|
||||
return unary_operation<u128, u128, Operators::VectorFloatConvertOp<4, Operators::SaturatingTruncate<i32>>>(configuration);
|
||||
case Instructions::i32x4_trunc_sat_f32x4_u.value():
|
||||
return unary_operation<u128, u128, Operators::VectorFloatConvertOp<4, Operators::SaturatingTruncate<u32>>>(configuration);
|
||||
case Instructions::i8x16_bitmask.value():
|
||||
return unary_operation<u128, i32, Operators::VectorBitmask<16>>(configuration);
|
||||
case Instructions::i16x8_bitmask.value():
|
||||
return unary_operation<u128, i32, Operators::VectorBitmask<8>>(configuration);
|
||||
case Instructions::i32x4_bitmask.value():
|
||||
return unary_operation<u128, i32, Operators::VectorBitmask<4>>(configuration);
|
||||
case Instructions::i64x2_bitmask.value():
|
||||
return unary_operation<u128, i32, Operators::VectorBitmask<2>>(configuration);
|
||||
case Instructions::f32x4_demote_f64x2_zero.value():
|
||||
case Instructions::f64x2_promote_low_f32x4.value():
|
||||
case Instructions::i8x16_bitmask.value():
|
||||
case Instructions::i8x16_narrow_i16x8_s.value():
|
||||
case Instructions::i8x16_narrow_i16x8_u.value():
|
||||
case Instructions::i16x8_q15mulr_sat_s.value():
|
||||
case Instructions::i16x8_bitmask.value():
|
||||
case Instructions::i16x8_narrow_i32x4_s.value():
|
||||
case Instructions::i16x8_narrow_i32x4_u.value():
|
||||
case Instructions::i32x4_bitmask.value():
|
||||
case Instructions::i32x4_dot_i16x8_s.value():
|
||||
case Instructions::i64x2_bitmask.value():
|
||||
case Instructions::i32x4_trunc_sat_f32x4_s.value():
|
||||
case Instructions::i32x4_trunc_sat_f32x4_u.value():
|
||||
case Instructions::f32x4_convert_i32x4_s.value():
|
||||
case Instructions::f32x4_convert_i32x4_u.value():
|
||||
case Instructions::i32x4_trunc_sat_f64x2_s_zero.value():
|
||||
case Instructions::i32x4_trunc_sat_f64x2_u_zero.value():
|
||||
case Instructions::f32x4_convert_i32x4_s.value():
|
||||
case Instructions::f32x4_convert_i32x4_u.value():
|
||||
case Instructions::f64x2_convert_low_i32x4_s.value():
|
||||
case Instructions::f64x2_convert_low_i32x4_u.value():
|
||||
dbgln_if(WASM_TRACE_DEBUG, "Instruction '{}' not implemented", instruction_name(instruction.opcode()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue