- if (load->channels != 1)
- fprintf(fp, ".v%u", load->channels);
+const char *
+bi_table_op_name(enum bi_table_op op)
+{
+ switch (op) {
+ case BI_TABLE_LOG2_U_OVER_U_1_LOW: return "log2.help";
+ default: return "invalid";
+ }
+}
+
+const char *
+bi_special_op_name(enum bi_special_op op)
+{
+ switch (op) {
+ case BI_SPECIAL_FRCP: return "frcp";
+ case BI_SPECIAL_FRSQ: return "frsq";
+ case BI_SPECIAL_EXP2_LOW: return "exp2_low";
+ default: return "invalid";
+ }
+}
+
+const char *
+bi_reduce_op_name(enum bi_reduce_op op)
+{
+ switch (op) {
+ case BI_REDUCE_ADD_FREXPM: return "add_frexpm";
+ default: return "invalid";
+ }
+}
+
+const char *
+bi_frexp_op_name(enum bi_frexp_op op)
+{
+ switch (op) {
+ case BI_FREXPE_LOG: return "frexpe_log";
+ default: return "invalid";
+ }
+}
+
+const char *
+bi_tex_op_name(enum bi_tex_op op)
+{
+ switch (op) {
+ case BI_TEX_NORMAL: return "normal";
+ case BI_TEX_COMPACT: return "compact";
+ case BI_TEX_DUAL: return "dual";
+ default: return "invalid";
+ }