ptx_parser/unparser/instruction/
rcp_approx_ftz_f64.rs

1//! Original PTX specification:
2//!
3//! rcp.approx.ftz.f64  d, a;
4
5#![allow(unused)]
6
7use crate::lexer::PtxToken;
8use crate::unparser::{PtxUnparser, common::*};
9
10pub mod section_0 {
11    use super::*;
12    use crate::r#type::instruction::rcp_approx_ftz_f64::section_0::*;
13
14    impl PtxUnparser for RcpApproxFtzF64 {
15        fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
16            push_opcode(tokens, "rcp");
17                    push_directive(tokens, "approx");
18                    push_directive(tokens, "ftz");
19                    push_directive(tokens, "f64");
20                    self.d.unparse_tokens(tokens);
21            tokens.push(PtxToken::Comma);
22                    self.a.unparse_tokens(tokens);
23            tokens.push(PtxToken::Semicolon);
24        }
25    }
26
27}
28