Commit 28038dbf authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

t6xx: Decode hconstants

parent 17d2ff6e
......@@ -675,6 +675,13 @@ static void print_alu_word(uint32_t* words, unsigned num_quad_words,
(float) (hconsts[2]),
(float) (hconsts[3]));
uint16_t* hconsts = (uint16_t*) consts;
printf("hconstants %g, %g, %g, %g\n",
ogt_hfloat_to_float((ogt_hfloat_t) hconsts[0]),
ogt_hfloat_to_float((ogt_hfloat_t) hconsts[1]),
ogt_hfloat_to_float((ogt_hfloat_t) hconsts[2]),
ogt_hfloat_to_float((ogt_hfloat_t) hconsts[3]));
} else {
uint32_t* fconsts = (uint32_t*) consts;
printf("fconstants %g, %g, %g, %g\n",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment