search for: vec03

Displaying 9 results from an estimated 9 matches for "vec03".

2017 Aug 26
2
Error in generating Object Code for implemented assembly vector instructions
...; break; case X86::P_256B_STORE_DWORD: NewOpc = X86::P_256B_STORE_DWORD; break; case X86::P_256B_VADD: NewOpc = X86::P_256B_VADD; break; } OutMI.setOpcode(NewOpc); break; when i used the command: llc -x86-asm-syntax=intel -debug -p-enabled=true -filetype=obj sum-vec03.ll>objpon 2>&1 i am getting the following error: ********** COMPUTING STACKMAP LIVENESS: foo ********** Unknown immediate size UNREACHABLE executed at lib/Target/X86/MCTargetDesc/X86BaseInfo.h:574! #0 0x00000000019d9fec llvm::sys::PrintStackTrace(llvm::raw_ostream&) lib/Support/Unix/...
2017 Aug 17
2
unable to emit vectorized code in LLVM IR
lli sum-vec03.ll 5 2 #0 0x0000000000c1f818 (lli+0xc1f818) #1 0x0000000000c1d90e (lli+0xc1d90e) #2 0x0000000000c1da5c (lli+0xc1da5c) #3 0x00007f987c2c3d10 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10d10) #4 0x00007f987c6f0038 #5 0x0000000000989f8c (lli+0x989f8c) #6 0x00000000009383dc (lli+0x9383dc) #...
2017 Aug 17
2
unable to emit vectorized code in LLVM IR
...t a[1000], b[1000], c[1000]; int g=0; int aa=atoi(argv[1]), bb=atoi(argv[2]); for (int i=0; i<1000; i++) { a[i]=aa+i, b[i]=bb+i;} for (int i=0; i<1000; i++) { c[i]=a[i] + b[i]; g+=c[i]; } printf("sum: %d\n", g); return 0; } When i executed the optimized IR through jit (lli sum-vec03.ll 5 2) i am getting following error: #0 0x00000000013f965c llvm::sys::PrintStackTrace(llvm::raw_ostream&) /lib/Support/Unix/Signals.inc:402:11 #1 0x00000000013f9b49 PrintStackTraceSignalHandler(void*) /lib/Support/Unix/Signals.inc:466:1 #2 0x00000000013f7ec3 llvm::sys::RunSignalHandlers() /l...
2017 Aug 24
2
JIT Optimization Levels
...o study the impact of lli optimizations. here my IR is already optimized through opt. now i have to perform lli optimizations provided i am giving varying inputs at run time. so i suppose here my optimization level also depends on runtime input. like, i am using following command. time lli -O3 sum-vec03.ll 5 2 also after acquiring the execution time at different scenarios i plan to use some machine learning algorithm in order to predict the appropriate flag setting for given program and run time input. Please help. Does this look appropriate approach? is my methodology correct? Thank You -----...
2017 Aug 17
3
unable to emit vectorized code in LLVM IR
...uot;, c[i]); } I am getting error remark: <unknown>:0:0: loop not vectorized: call instruction cannot be vectorized. I am running following commands: clang -S -emit-llvm sum-vec.c -march=knl -O3 -mllvm -disable-llvm-optzns -o sum-vec.ll opt -S -O3 -force-vector-width=64 sum-vec.ll -o sum-vec03.ll How to achieve this? Please help. On Thu, Aug 17, 2017 at 10:44 AM, Nemanja Ivanovic <nemanja.i.ibm at gmail.com> wrote: > I'm not sure what you expect to have vectorized here. If you look at the > emitted code, there's no loop. It's just an add and a multiply as y...
2017 Aug 17
4
unable to emit vectorized code in LLVM IR
...wn>:0:0: loop not vectorized: call >> instruction cannot be vectorized. >> >> I am running following commands: >> clang -S -emit-llvm sum-vec.c -march=knl -O3 -mllvm -disable-llvm-optzns >> -o sum-vec.ll >> opt -S -O3 -force-vector-width=64 sum-vec.ll -o sum-vec03.ll >> >> How to achieve this? Please help. >> >> >> >> >> >> On Thu, Aug 17, 2017 at 10:44 AM, Nemanja Ivanovic < >> nemanja.i.ibm at gmail.com> wrote: >> >>> I'm not sure what you expect to have vectorized here. If you...
2017 Aug 17
4
unable to emit vectorized code in LLVM IR
...>>>>>> >>>>>> I am running following commands: >>>>>> clang -S -emit-llvm sum-vec.c -march=knl -O3 -mllvm >>>>>> -disable-llvm-optzns -o sum-vec.ll >>>>>> opt -S -O3 -force-vector-width=64 sum-vec.ll -o sum-vec03.ll >>>>>> >>>>>> How to achieve this? Please help. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Aug 17, 2017 at 10:44 AM, Nemanja Ivanovic < >&g...
2017 Aug 17
2
unable to emit vectorized code in LLVM IR
...t;> instruction cannot be vectorized. >>>> >>>> I am running following commands: >>>> clang -S -emit-llvm sum-vec.c -march=knl -O3 -mllvm >>>> -disable-llvm-optzns -o sum-vec.ll >>>> opt -S -O3 -force-vector-width=64 sum-vec.ll -o sum-vec03.ll >>>> >>>> How to achieve this? Please help. >>>> >>>> >>>> >>>> >>>> >>>> On Thu, Aug 17, 2017 at 10:44 AM, Nemanja Ivanovic < >>>> nemanja.i.ibm at gmail.com> wrote: >>>&gt...
2017 Aug 16
2
unable to emit vectorized code in LLVM IR
Hello, I have written the following code. when i try to vectorize it through opt. i am not getting vectorized instructions. #include <stdio.h> #include<stdlib.h> int main(int argc, char** argv) { int sum=0; int a=atoi(argv[1]); int b=atoi(argv[2]); for (int i=0;i<1000;i++) { sum+=a+b; } printf("sum: %d\n", sum); return 0; } i use following commands: clang -S -emit-llvm