Changeset 1952


Ignore:
Timestamp:
Mar 3, 2012, 1:33:56 PM (7 years ago)
Author:
cameron
Message:

AVX updates

Location:
trunk/libgen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libgen/Configure/configure.py

    r1767 r1952  
    123123
    124124Load_type = {MMX:"bitblock64_t*", SSE:"bitblock128_t*", SSE2:"bitblock128_t*", SSE3:"bitblock128_t*", SSSE3:"bitblock128_t*", SSE4_1:"bitblock128_t*", SSE4_2:"bitblock128_t*",
    125                         NEON:"uint64_t const*", AVX:"float const*"}
     125                        NEON:"uint64_t const*", AVX:"float*"}
    126126
    127127Store_type = {MMX:"bitblock64_t*", SSE:"bitblock128_t*", SSE2:"bitblock128_t*", SSE3:"bitblock128_t*", SSSE3:"bitblock128_t*", SSE4_1:"bitblock128_t*", SSE4_2:"bitblock128_t*",
  • trunk/libgen/Library_Generator/AVXInstructions.py

    r1767 r1952  
    204204        "bitblock_load_aligned":\
    205205        {
    206                 "signature":"SIMD_type _mm256_load_ps(float const* arg1)",
    207                 "args_type":{"arg1":"float const*"},
     206                "signature":"SIMD_type _mm256_load_ps(float* arg1)",
     207                "args_type":{"arg1":"float*"},
    208208                "return_type":"SIMD_type",
    209209                "fws":[256],
     
    211211        "bitblock_store_aligned":\
    212212        {
    213                 "signature":"void _mm256_store_ps(float* arg1, SIMD_type arg2)",
    214                 "args_type":{"arg1":"float*", "arg2":"SIMD_type"},
     213                "signature":"void _mm256_store_ps(float* arg2, SIMD_type arg1)",
     214                "args_type":{"arg2":"float*", "arg1":"SIMD_type"},
    215215                "return_type":"void",
    216216                "fws":[256],
     
    218218        "bitblock_load_unaligned":\
    219219        {
    220                 "signature":"SIMD_type _mm256_loadu_ps(float const* arg1)",
    221                 "args_type":{"arg1":"float const*"},
     220                "signature":"SIMD_type _mm256_loadu_ps(float* arg1)",
     221                "args_type":{"arg1":"float*"},
    222222                "return_type":"SIMD_type",
    223223                "fws":[256],
     
    225225        "bitblock_store_unaligned":\
    226226        {
    227                 "signature":"void _mm256_storeu_ps(float* arg1, SIMD_type arg2)",
    228                 "args_type":{"arg1":"float*", "arg2":"SIMD_type"},
     227                "signature":"void _mm256_storeu_ps(float* arg2, SIMD_type arg1)",
     228                "args_type":{"arg2":"float*", "arg1":"SIMD_type"},
    229229                "return_type":"void",
    230230                "fws":[256],
  • trunk/libgen/Library_Generator/IDISAFunctionSupport.py

    r1897 r1952  
    3838                return (castExpr + "(" + str(argsList[1]) + ")", "__m128d")
    3939        returnType = configure.Bitblock_type[self.arch] if castExpr == "SIMD_type" else castExpr
    40         codes = "reinterpret_cast" + "<" + returnType + ">(" + str(argsList[1]) + ")"
     40        #codes = "reinterpret_cast" + "<" + returnType + ">(" + str(argsList[1]) + ")"
     41        codes = "((" + returnType + ")(" + str(argsList[1]) + "))"
    4142        return (codes, returnType)
    4243   
Note: See TracChangeset for help on using the changeset viewer.