#![allow(unused)]
use crate::lexer::PtxToken;
use crate::unparser::{PtxUnparser, common::*};
pub mod section_0 {
use super::*;
use crate::r#type::instruction::testp::section_0::*;
impl PtxUnparser for TestpOpType {
fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
self.unparse_tokens_mode(tokens, false);
}
fn unparse_tokens_mode(&self, tokens: &mut ::std::vec::Vec<PtxToken>, spaced: bool) {
push_opcode(tokens, "testp");
match &self.op {
Op::Notanumber => {
push_directive(tokens, "notanumber");
}
Op::Subnormal => {
push_directive(tokens, "subnormal");
}
Op::Infinite => {
push_directive(tokens, "infinite");
}
Op::Finite => {
push_directive(tokens, "finite");
}
Op::Number => {
push_directive(tokens, "number");
}
Op::Normal => {
push_directive(tokens, "normal");
}
}
match &self.type_ {
Type::F32 => {
push_directive(tokens, "f32");
}
Type::F64 => {
push_directive(tokens, "f64");
}
}
if spaced {
tokens.push(PtxToken::Space);
}
self.p.unparse_tokens_mode(tokens, spaced);
tokens.push(PtxToken::Comma);
if spaced {
tokens.push(PtxToken::Space);
}
self.a.unparse_tokens_mode(tokens, spaced);
tokens.push(PtxToken::Semicolon);
if spaced {
tokens.push(PtxToken::Newline);
}
}
}
}