Changes between Version 5 and Version 6 of SIMDVectorExampleInLLVM


Ignore:
Timestamp:
Oct 25, 2011 6:54:42 PM (4 years ago)
Author:
pmonday
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SIMDVectorExampleInLLVM

    v5 v6  
    112112
    113113This is easy enough to run using the JIT compiler:  lli add_floats.ll
     114{{{
     115[root@pg155-n19 pgms]# lli add_floats.ll
     11611.000000 22.000000 33.000000 44.000000
     117[root@pg155-n19 pgms]#
     118}}}
    114119
    115120The core of the instructions can be replaced with vectorization (obviously, optimizing this program will result in very little code and vectorization is not necessary, but this is an exercise.
     
    186191}}}
    187192
     193Rerunning the program above yields the same results as the original, non-vectorized LLVM program.
     194
     195{{{
     196[root@pg155-n19 pgms]# lli add_floats_vec.ll
     19711.000000 22.000000 33.000000 44.000000
     198}}}
     199