aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Instructions/Instrs/Numeric/F32Const.php
blob: 8ad8bdc52c3b30c289298ed127bfc6a8596333c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Numeric;

use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;

final readonly class F32Const extends Instr
{
    /**
     * @param F32 $value
     */
    protected function __construct(
        public float $value,
    ) {
    }

    public static function opName(): string
    {
        return 'f32.const';
    }
}