Ignore:
Timestamp:
Aug 8, 2014, 11:34:47 PM (5 years ago)
Author:
linmengl
Message:

more testings done, on v64i2 add/sub/mul/eq/lt/gt/ult/ugt/vsll/vsrl/vsra

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib_ir/gen/test_llc.pytemplate.cpp

    r3977 r3981  
    2828    fill_random(a, b);
    2929
    30 {% for name in FunctionNames %}
     30  {% for name in FunctionNames %}
     31    {% if name.flag == "" %}
    3132    c = {{ name.c }}(a, b);
    3233    d = {{ name.cxx }}(a, b);
     
    3637    }
    3738
    38 {% endfor %}
     39    {% endif %}
     40  {% endfor %}
     41
     42    //Shifting tests need special treatment
     43  {% for name in FunctionNames %}
     44    {% if name.flag == "shifting" %}
     45      {% for x in [0, 1] %}
     46    b = mvmd<2>::fill({{ x }});
     47    c = {{ name.cxx }}<{{ x }}>(a);
     48    d = {{ name.c }}(a, b);
     49    if (Store2String(c,1) != Store2String(d,1)) {
     50      cout << "{{ name.c }} faild." << endl;
     51      return 1;
     52    }
     53
     54      {% endfor %}
     55    {% endif %}
     56  {% endfor %}
    3957  }
    4058
Note: See TracChangeset for help on using the changeset viewer.