search for: v64

Displaying 20 results from an estimated 515 matches for "v64".

Did you mean: u64
2023 Feb 23
2
Possible NA Propagation Failure in RISC-V64 CPU?
Hi all, I am currently compiling R to RISC-V64 CPU and I think I have discovered a NA propagation failure. How R implements NA (not available) and NaN (not-a-number) is explained in detail here: https://stat.ethz.ch/pipermail/r-devel/2014-February/068380.html. In short, according to my understanding of R's convention, any calculation invo...
2013 Mar 15
6
[LLVMdev] Simple question
...must just be missing something. I am looking for find out how to assign a constant integer value to the variable in llvm ir. The following returns 12, and %var2 = 12. ; ModuleID = 't.c' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" define i32 @test() nounwind readnone { %var1 = xor i32 0, 0 %var2 = add i32 %var1, 12 ret i32 %var2 } Why can't I do?: ; ModuleID = 't.c' target datalayout = &q...
2011 Jul 25
3
[LLVMdev] function failing to run in Jit
...won't run in the Jit? I've pretty much got everything else working for my front end which all runs fin in the Jit but I can't get global arrays to work. ; ModuleID = 'test' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i686-pc-linux-gnu" @MyArray = external global [1000 x i32] define i32 @foo(i32 %a, i32 %b) { Entry: %mul = mul i32 %b, %a %ptr = getelementptr inbounds [1000 x i32]* @MyArray, i32 0, i32 %a store i32 %mul, i32* %ptr, alig...
2012 Feb 02
3
[LLVMdev] Why extra 4 bytes on stack ???
...th clang i.e *clang enum.c -S -emit-llvm* and there respective file are $ cat enum.c int main() { enum type{one=1,two,three} s; s = one; return s; } $ cat enum.s ; ModuleID = 'enum.c' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32" target triple = "i386-pc-cygwin" define i32 @main() nounwind { %1 = alloca i32, align 4 %s = alloca i32, align 4 store i32 0, i32* %1 store i32 1, i32* %s, align 4 %2 = load i32* %s, align 4 ret i32 %2 } *Question :* Wh...
2012 Feb 28
4
[LLVMdev] Is it an opt bug ?
...0] = 3; a[1] = 5; *x = * ((double *) a); *(x+1) = * ((double *) &a[a[0]-2]); } I use generate LLVM code using my own front-end that looks like: ; ModuleID = 'jb.c' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" target triple = "i386-pc-linux-gnu" define void @t2(double* %x) { L.entry: %a = alloca [2 x i64], align 4 %x.addr = alloca double* store double* %x, double** %x.addr %0 = bitcast [2 x i64]* %a to i64* store i64 3, i6...
2012 Feb 02
0
[LLVMdev] Why extra 4 bytes on stack ???
...file are > > $ cat enum.c > int main() > { >  enum type{one=1,two,three} s; >  s = one; >  return s; > } > > $ cat enum.s > ; ModuleID = 'enum.c' > target datalayout = > "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32" > target triple = "i386-pc-cygwin" > > define i32 @main() nounwind { >   %1 = alloca i32, align 4 >   %s = alloca i32, align 4 >   store i32 0, i32* %1 >   store i32 1, i32* %s, align 4 >   %2 = load i32* %s,...
2013 Mar 15
0
[LLVMdev] Simple question
...gt; I am looking for find out how to assign a constant integer value to > the variable in llvm ir. > > The following returns 12, and %var2 = 12. > ; ModuleID = 't.c' > target datalayout = > "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" > target triple = "x86_64-pc-linux-gnu" > > define i32 @test() nounwind readnone { > %var1 = xor i32 0, 0 > %var2 = add i32 %var1, 12 > ret i32 %var2 > } > > Why can't I do?: > ;...
2013 Mar 15
0
[LLVMdev] Simple question
...> I am looking for find out how to assign a constant integer value to > the variable in llvm ir. > > The following returns 12, and %var2 = 12. > ; ModuleID = 't.c' > target datalayout = > "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" > target triple = "x86_64-pc-linux-gnu" > > define i32 @test() nounwind readnone { > %var1 = xor i32 0, 0 > %var2 = add i32 %var1, 12 > ret i32 %var2 > } > > Why can't I do?: > ;...
2011 Jul 25
0
[LLVMdev] function failing to run in Jit
...> I've pretty much got everything else working for my front end > which all runs fin in the Jit but I can't get global arrays to work. > > ; ModuleID = 'test' > target datalayout = > "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" > target triple = "i686-pc-linux-gnu" > > @MyArray = external global [1000 x i32] > > define i32 @foo(i32 %a, i32 %b) { > Entry: > %mul = mul i32 %b, %a > %ptr = getelementptr inbounds [1000 x i32]* @MyArray, i32 0,...
2012 Feb 28
0
[LLVMdev] Is it an opt bug ?
...le *) a); > *(x+1) = * ((double *) &a[a[0]-2]); > } > > I use generate LLVM code using my own front-end that looks like: > > > ; ModuleID = 'jb.c' > target datalayout = > "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" > target triple = "i386-pc-linux-gnu" > define void @t2(double* %x) { > L.entry: > %a = alloca [2 x i64], align 4 > > %x.addr = alloca double* > store double* %x, double** %x.addr > %0 = bitcas...
2010 Oct 24
2
[LLVMdev] lli : external functions and target datalayout
...//////////////// #include "stdio.h" int main () { putchar('a'); return 0; } llvm-gcc -emit-llvm, I got //////////////////////////////////////// ; ModuleID = 't1.bc' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i386-pc-linux-gnu" define i32 @main() nounwind { entry: %retval = alloca i32 ; <i32*> [#uses=2] %0 = alloca i32 ; <i32*> [#uses=2] %"alloca point&...
2015 Aug 22
3
sprintf error: "only 100 arguments allowed"
...21:%f V22:%f V23:%f V24:%f V25:%f V26:%f V27:%f V28:%f V29:%f V30:%f V31:%f V32:%f V33:%f V34:%f V35:%f V36:%f V37:%f V38:%f V39:%f V40:%f V41:%f V42:%f V43:%f V44:%f V45:%f V46:%f V47:%f V48:%f V49:%f V50:%f V51:%f V52:%f V53:%f V54:%f V55:%f V56:%f V57:%f V58:%f V59:%f V60:%f V61:%f V62:%f V63:%f V64:%f V65:%f V66:%f V67:%f V68:%f V69:%f V70:%f V71:%f V72:%f V73:%f V74:%f V75:%f V76:%f V77:%f V78:%f V79:%f V80:%f V81:%f V82:%f V83:%f V84:%f V85:%f V86:%f V87:%f V88:%f V89:%f V90:%f V91:%f V92:%f V93:%f V94:%f V95:%f V96:%f V97:%f V98:%f V99:%f V100:%f V101:%f ',V102, weight, V1, V2, V3, V4,...
2012 Feb 28
1
[LLVMdev] Is it an opt bug ?
...&a[a[0]-2]); > > } > > > > I use generate LLVM code using my own front-end that looks like: > > > > > > ; ModuleID = 'jb.c' > > target datalayout = > > > "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" > > target triple = "i386-pc-linux-gnu" > > define void @t2(double* %x) { > > L.entry: > > %a = alloca [2 x i64], align 4 > > > > %x.addr = alloca double* > > store double* %x, dou...
2013 Mar 16
3
[LLVMdev] Simple question
...how to assign a constant integer value to > > the variable in llvm ir. > > > > The following returns 12, and %var2 = 12. > > ; ModuleID = 't.c' > > target datalayout = > > "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" > > target triple = "x86_64-pc-linux-gnu" > > > > define i32 @test() nounwind readnone { > > %var1 = xor i32 0, 0 > > %var2 = add i32 %var1, 12 > > ret i32 %var2 > > } &g...
2011 Nov 25
2
[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
...he following llvm-ir: >> >> $ clang++ -S -emit-llvm -O3 mangling.cpp -o - -Xclang -cxx-abi -Xclang microsoft >> ; ModuleID = 'mangling.cpp' >> target datalayout = >> "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64- >> v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32" >> target triple = "i686-pc-win32" >> >> define i32 @"?heyimacxxfunction@@YAHXZ"() nounwind readnone { >> entry: >> ret i32 42 >> } >> >> Note the ?heyimacxxfuncti...
2011 Oct 05
0
[LLVMdev] LLVM IR is a compiler IR
...th this strategy. C/C++ source code 1 struct foo { 2 char a:4; 3 long long b:61; 4 int c:30; 5 }; 6 7 struct foo var; Target Independent Bitcode 1 ; ModuleID = 'gu.c' 2 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32 -f64:64:64-v64:64:64-v128:128:128-a0:0:64-f192:32:32" 3 target triple = "ovm-none-linux" 4 5 %struct.foo = type { i4(char), i61(longlong), i30(int) } 6 7 @var = common global %struct.foo zeroinitializer ; <%struct.foo*> [#uses=0] Target Dependent Bitcode ARM 1 ; ModuleID = 'g...
2011 Nov 25
5
[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
...vacation, and ran into a major issue. Given the following llvm-ir: $ clang++ -S -emit-llvm -O3 mangling.cpp -o - -Xclang -cxx-abi -Xclang microsoft ; ModuleID = 'mangling.cpp' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64- v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32" target triple = "i686-pc-win32" define i32 @"?heyimacxxfunction@@YAHXZ"() nounwind readnone { entry: ret i32 42 } Note the ?heyimacxxfunction@@YAHXZ. Now if I generate assembly (using clang or llc) I get: $ clang++ -S...
2009 Aug 08
2
[LLVMdev] Initial cut at a instruction raising patch
Hi, This patch raises selected instructions to function calls. I've dome some preliminary testing and I works: ; ModuleID = 'raise.o' target datalayout = "e-p:32:32-i1:8:0-i8:8:0-i16:16:0-i32:32:0-i32:32:0-i64:32:0-f32:32:0-f64:32:0-f96:32:0-v64:64:64-v128:128:0-a0:0" target triple = "i386-pc-linux-gnu" define i32 @main(i32, i8**, ...) nounwind { entry: %argc = alloca i32 ; <i32*> [#uses=1] store i32 %0, i32* %argc %argv = alloca i8** ; <i8***> [#uses=1]...
2011 Nov 25
0
[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
...major issue. Given the following llvm-ir: > > $ clang++ -S -emit-llvm -O3 mangling.cpp -o - -Xclang -cxx-abi -Xclang microsoft > ; ModuleID = 'mangling.cpp' > target datalayout = > "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128-v64:64:64- > v128:128:128-a0:0:64-f80:32:32-n8:16:32-S32" > target triple = "i686-pc-win32" > > define i32 @"?heyimacxxfunction@@YAHXZ"() nounwind readnone { > entry: > ret i32 42 > } > > Note the ?heyimacxxfunction@@YAHXZ. Now if I generate assemb...
2009 Sep 17
2
[LLVMdev] Forcing function inline not working
...d (...)* @foo() >> Inliner visiting SCC: INDIRECTNODE: 0 call sites. >> >> Here is the .ll file: >> >> ; ModuleID = 'test_opt.bc' >> target datalayout = >> "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32- >> f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" >> target triple = "i386-pc-win32" >> @a = common global i32 0, align 4 ; <i32*> [#uses=2] >> >> define i32 @main(i32 %argc, i8** %argv) nounwind { >> entry: >> tail call void (...)* @foo() >> re...