Skip to main content

ptx_parser/type/instruction/
lg2.rs

1//! Original PTX specification:
2//!
3//! lg2.approx{.ftz}.f32  d, a;
4
5#![allow(unused)]
6use crate::r#type::common::*;
7
8pub mod section_0 {
9    use crate::Spanned;
10    use crate::parser::Span;
11    use crate::r#type::common::*;
12
13    use serde::Serialize;
14
15    #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
16    pub struct Lg2ApproxFtzF32 {
17        pub approx: (),        // .approx
18        pub ftz: bool,         // {.ftz}
19        pub f32: (),           // .f32
20        pub d: GeneralOperand, // d
21        pub a: GeneralOperand, // a
22        pub span: Span,
23    }
24}
25
26// Re-export types with section suffixes to avoid naming conflicts
27// e.g., Type0 for section_0::Type, Type1 for section_1::Type
28pub use section_0::Lg2ApproxFtzF32;