Ignore:
Timestamp:
Oct 12, 2014, 5:14:35 PM (5 years ago)
Author:
linmengl
Message:

micro benchmark with Agner's testp ready

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib_ir/AgnerTestP/PMCTest/PMCTestB.pytemplate.cpp

    r4225 r4232  
    131131
    132132SIMD_type UserData[NUM_THREADS][USER_DATA_SIZE];
    133 SIMD_type one_constant = simd<4>::himask();
     133SIMD_type one_constant = simd<2>::himask();
    134134
    135135
     
    231231        // Put the code to test here,
    232232        // or a call to a function defined in a separate module       
    233 
     233        {% if NoLoop %}
     234          {% for ii in range(0, TestInstrCount) %}
     235          UserData[thread][{{ii}}] = {{ TestInstr | replace("[i]", "[" ~ ii ~ "]") }};
     236          {% endfor %}
     237        {% else %}
    234238        for (i = 0; i < {{TestInstrCount}}; i++) UserData[thread][i] = {{TestInstr}};
     239        {% endif %}
    235240
    236241
Note: See TracChangeset for help on using the changeset viewer.