ptx_parser/type/instruction/
neg.rs1#![allow(unused)]
15use crate::r#type::common::*;
16
17pub mod section_0 {
18 use crate::Spanned;
19 use crate::parser::Span;
20 use crate::r#type::common::*;
21
22 use serde::Serialize;
23
24 #[derive(Debug, Clone, PartialEq, Serialize)]
25 pub enum Type {
26 S16, S32, S64, }
30
31 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
32 pub struct NegType {
33 pub type_: Type, pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
37 }
38
39 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
40 pub struct NegFtzF32 {
41 pub ftz: bool, pub f32: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
46 }
47
48 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
49 pub struct NegF64 {
50 pub f64: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
54 }
55
56 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
57 pub struct NegFtzF16 {
58 pub ftz: bool, pub f16: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
63 }
64
65 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
66 pub struct NegFtzF16x2 {
67 pub ftz: bool, pub f16x2: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
72 }
73
74 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
75 pub struct NegBf16 {
76 pub bf16: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
80 }
81
82 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
83 pub struct NegBf16x2 {
84 pub bf16x2: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
88 }
89}
90
91pub use section_0::NegBf16;
94pub use section_0::NegBf16x2;
95pub use section_0::NegF64;
96pub use section_0::NegFtzF16;
97pub use section_0::NegFtzF16x2;
98pub use section_0::NegFtzF32;
99pub use section_0::NegType;
100pub use section_0::Type as Type0;