search for: changcheng

Displaying 20 results from an estimated 30 matches for "changcheng".

2012 Aug 29
3
[LLVMdev] How to write a regression test case?
hi,yang: i had delete the temporary files,sorry to trouble you. it is so easy: // RUN: rm .... Regards changcheng On Wed, Aug 29, 2012 at 2:41 PM, Changcheng Wang <changcheng at multicorewareinc.com> wrote: > hi,yang: > how can i remove the temporary files? > if i can remove them,all is ok! > > yours: > > changcheng > > On Wed, Aug 29, 2012 at 2:14 PM, Changcheng Wang > &lt...
2012 Aug 29
0
[LLVMdev] How to write a regression test case?
aha, that's quite straightforward. 2012/8/29 Changcheng Wang <changcheng at multicorewareinc.com>: > hi,yang: > i had delete the temporary files,sorry to trouble you. > it is so easy: // RUN: rm .... > > Regards > changcheng > > On Wed, Aug 29, 2012 at 2:41 PM, Changcheng Wang > <changcheng at multicorewareinc.com>...
2012 Aug 29
2
[LLVMdev] How to write a regression test case?
...time,i used your example and it run well,but a problem came,it create severel temporary files i chaged the RUN: line but failed. i changed it like this,can you give me some suggestions? // RUN: clang %s -S -emit-llvm | llc -march=c | clang -S -emit-llvm | lli | FileCheck %s thanks, best wishes, changcheng On Wed, Aug 29, 2012 at 8:39 AM, Changcheng Wang <changcheng at multicorewareinc.com> wrote: > hi,yang: > i had realized the test. > thanks for your help! > > yours, > changcheng > > On Tue, Aug 28, 2012 at 8:58 PM, Triple Yang <triple.yang at gmail.com> wrote:...
2012 Aug 29
0
[LLVMdev] How to write a regression test case?
hi,yang: how can i remove the temporary files? if i can remove them,all is ok! yours: changcheng On Wed, Aug 29, 2012 at 2:14 PM, Changcheng Wang <changcheng at multicorewareinc.com> wrote: > hi,yang: > sorry to trouble you another time,i used your example and it run > well,but a problem came,it create severel temporary files i chaged the > RUN: line but failed. > i chang...
2012 Aug 28
3
[LLVMdev] How to write a regression test case?
2012/8/28 Changcheng Wang <changcheng at multicorewareinc.com>: > hi,yang: > another question,i write a test like this: > /*****test start******/ > ; RUN: llc -march=c < %s | FileCheck %s > > ; ModuleID = 'hello.c' > target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i3...
2012 Aug 28
0
[LLVMdev] How to write a regression test case?
hi,yang: thanks,i replaced "{helloworld}" with "helloworld" as you said,and the test run well on llvm version 3.0,but fail on llvm 162227,is it right? llvm version 162227 do not support it? your, changcheng On Tue, Aug 28, 2012 at 2:28 PM, Triple Yang <triple.yang at gmail.com> wrote: > 2012/8/28 Changcheng Wang <changcheng at multicorewareinc.com>: >> hi,yang: >> another question,i write a test like this: >> /*****test start******/ >> ; RUN: llc -march=c <...
2012 Aug 31
2
[LLVMdev] How to write a regression test case?
...uct student{ long num; int num2; int num3; int num4; }; after analyze the struct should be modify like this: struct student{ long num; int num2; int num3; int num4; char add[4]; }; but now, i do not know which function can do this work in Module in llvm162227. thanks, Regards, changcheng On Wed, Aug 29, 2012 at 10:29 PM, Triple Yang <triple.yang at gmail.com> wrote: > aha, that's quite straightforward. > > 2012/8/29 Changcheng Wang <changcheng at multicorewareinc.com>: >> hi,yang: >> i had delete the temporary files,sorry to trouble you. >&...
2012 Aug 28
4
[LLVMdev] How to write a regression test case?
aha,i add cBackend into llvm version 162227,my test run passed. it so hapyy! thanks for all of you! still a question: what does "; PR1028" means? best wishes, changcheng On Tue, Aug 28, 2012 at 2:35 PM, Changcheng Wang <changcheng at multicorewareinc.com> wrote: > hi,yang: > > thanks,i replaced "{helloworld}" with "helloworld" as you said,and the > test run well on llvm version 3.0,but fail on llvm 162227,is it right? > llv...
2012 Aug 22
7
[LLVMdev] How to write a regression test case?
...not take stdin as its input, so "clang < %s" fails. > Meanwhile, both "llc < %t.ll" and "llc %t.ll" work. > > 2012/8/22 Triple Yang <triple.yang at gmail.com>: >> 2012/8/21 Triple Yang <triple.yang at gmail.com>: >>> 2012/8/21 Changcheng Wang <changcheng at multicorewareinc.com>: >>>> Hi,Yang >>>> thanks for your entire answer,i will do it follow you. >>>> still another question puzzled me:i write a hello.c file like this: >>>> >>>> //RUN: llc -march=c < %s | File...
2012 Aug 28
2
[LLVMdev] How to write a regression test case?
...t;0) return fct(n-1)*n; else return 1; } /* end example.c */ /* lit.local.cfg */ config.suffixes = ['.c', '.cpp', '.ll'] targets = set(config.root.targets_to_build.split()) if not 'VPU' in targets: config.unsupported = True /* end lit.local.cfg */ 2012/8/28 Changcheng Wang <changcheng at multicorewareinc.com>: > hi,yang: > thanks for your help! > my net is so poor that i can not donwload your attachment. > would you like to paste here,or send to my other email:200005275 at 163.com? > > yours > > changcheng > > > > On Tue...
2012 Aug 28
3
[LLVMdev] How to write a regression test case?
Wang, Attachment is a simple example, you may put it in test/CodeGen, and run with llvm-lit C90 It worked ok in my llvm 3.2 devel. Let know if you run into any trouble. Regards. 2012/8/27 Changcheng Wang <changcheng at multicorewareinc.com>: > hi,Yang: > if you can give me a examle,which check out a string(such as "abcd") > from a file(such as aaa.c) with fileCheck? > i tried to write it but failed. > > thanks for your help! > > best wished! > > ch...
2012 Aug 29
0
[LLVMdev] How to write a regression test case?
hi,yang: i had realized the test. thanks for your help! yours, changcheng On Tue, Aug 28, 2012 at 8:58 PM, Triple Yang <triple.yang at gmail.com> wrote: > That example is a standalone one which means you can run it without > extra modification. > Feel free to try it. > > 2012/8/28 Changcheng Wang <changcheng at multicorewareinc.com>: >>...
2012 Aug 28
0
[LLVMdev] How to write a regression test case?
...eclare i32 @printf(i8*, ...) ; ;CHECK: main ;CHECK: printf /******test end*******/ i run the example ok,now i what to check if the file llc ouput contain a string "helloworld",so i add a sentence ";CHECK: {helloworld}" after ";CHECK: printf".but it failed.why? yours, changcheng On Tue, Aug 28, 2012 at 12:38 PM, Triple Yang <triple.yang at gmail.com> wrote: > You are welcome. > > /* example.c */ > // RUN: clang %s -S -O0 -emit-llvm -o %t.ll > // RUN: llc %t.ll -O0 -march=x86 -o %t.s > // RUN: FileCheck < %t.s %s > > > // CHECK: fct &gt...
2012 Aug 28
0
[LLVMdev] How to write a regression test case?
hi,yang: thanks for your help! my net is so poor that i can not donwload your attachment. would you like to paste here,or send to my other email:200005275 at 163.com? yours changcheng On Tue, Aug 28, 2012 at 11:43 AM, Triple Yang <triple.yang at gmail.com> wrote: > Wang, > > Attachment is a simple example, you may put it in test/CodeGen, and run with > > llvm-lit C90 > > It worked ok in my llvm 3.2 devel. Let know if you run into any trouble. > &...
2012 Aug 27
0
[LLVMdev] How to write a regression test case?
hi,Yang: if you can give me a examle,which check out a string(such as "abcd") from a file(such as aaa.c) with fileCheck? i tried to write it but failed. thanks for your help! best wished! changcheng On Wed, Aug 22, 2012 at 9:30 PM, Triple Yang <triple.yang at gmail.com> wrote: > I guess so. > FileCheck has powerful extensions than just matching some strings so that > it can support complex situations. > > 2012/8/22 Changcheng Wang <changcheng at multicorewareinc.com&gt...
2012 Aug 20
4
[LLVMdev] How to write a regression test case?
...ntire document about it. By reading LLVM Testing Infrastructure Guide and FileCheck - Flexible pattern matching file verifier, i only have a idea,but it is not enough for me to write a test case.i need more detail about how to write a RUN:lines. thanks for you scan,wish your letter. best wishes, changcheng
2012 Aug 21
0
[LLVMdev] How to write a regression test case?
2012/8/21 Changcheng Wang <changcheng at multicorewareinc.com>: > Hi,Yang > thanks for your entire answer,i will do it follow you. > still another question puzzled me:i write a hello.c file like this: > > //RUN: llc -march=c < %s | FileCheck %s > #include"stdio.h" > > int main...
2012 Aug 22
2
[LLVMdev] How to write a regression test case?
2012/8/21 Triple Yang <triple.yang at gmail.com>: > 2012/8/21 Changcheng Wang <changcheng at multicorewareinc.com>: >> Hi,Yang >> thanks for your entire answer,i will do it follow you. >> still another question puzzled me:i write a hello.c file like this: >> >> //RUN: llc -march=c < %s | FileCheck %s >> #include"stdio.h&...
2012 Aug 22
0
[LLVMdev] How to write a regression test case?
2012/8/22 Changcheng Wang <changcheng at multicorewareinc.com>: > the example is more like what i need,it is so nice. > but,i am indefinite if "RUN: FileCheck < %t.s %s" can pass,i > understand that t.s was translate from t.ll,%s means read the local > source,are they the same? %t indic...
2012 Aug 21
1
[LLVMdev] How to write a regression test case?
2012/8/21 Triple Yang <triple.yang at gmail.com>: > 2012/8/21 Changcheng Wang <changcheng at multicorewareinc.com>: >> Hi,Yang >> thanks for your entire answer,i will do it follow you. >> still another question puzzled me:i write a hello.c file like this: >> >> //RUN: llc -march=c < %s | FileCheck %s >> #include"stdio.h&...