Changeset 1442 for trunk


Ignore:
Timestamp:
Sep 14, 2011, 5:43:40 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: Fixed integration with IDISA, it does not work well for pbgs_log and pbgs_id_adv. Changed bitutil.* to pablo.* for compiler generated files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libgen/idisa_lib/idisa.hpp

    r1426 r1442  
    55#include <limits.h>
    66#include <stdint.h>
     7#include <stdio.h>
    78
    89#include "idisa_sse2.h"
     
    156157}
    157158
     159/* Prints the SIMD register representation of a SIMD value. */
     160void print_simd_register(const char * var_name, SIMD_type v) {
     161  union {SIMD_type vec; unsigned char elems[sizeof(SIMD_type)];} x;
     162  x.vec = v;
     163  unsigned char c;
     164  printf("%30s = ", var_name);
     165  for(int i=sizeof(SIMD_type)-1; i>=0; i--) {
     166    c = x.elems[i];
     167    printf("%02X ", c);
     168  }
     169  printf("\n");
     170}
     171
    158172#endif
Note: See TracChangeset for help on using the changeset viewer.