similar to: [LLVMdev] where can I find out the documents of how to write a llvm regression test case?

Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] where can I find out the documents of how to write a llvm regression test case?"

2012 Aug 27
2
[LLVMdev] where can I find out the documents of how to write a llvm regression test case?
Hi, thanks for your letter,but i have read it several times,and now i am confused still.because i do not know how the test work. for a simple sample: ; RUN: llvm-as < %s | llvm-dis | FileCheck %s @addr = external global i64 define i64 @add_unsigned(i64 %x, i64 %y) { ; CHECK: %z = add nuw i64 %x, %y %z = add nuw i64 %x, %y ret i64 %z } 1.FileCheck verify the file that llvm-dis output and
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
2012 Aug 27
4
[LLVMdev] where can I find out the documents of how to write a llvm regression test case?
hi,chen: thaks for your explaining,after reading it i have a few problems more. 1.in the sentenses of "X32: subl $-128, %eax" and "; X64: subl $-128," ,i do not know what means that in detail,these sentences were writen follow which language rules? 2.i want to write such a test:translate a *.ll(i.e:hello.ll) file to a *.c file(i.e:hello.c) with llc,then verify if the .c
2012 Aug 31
2
[LLVMdev] How to write a regression test case?
Hi,all: i have a question about llvm162227,recently i have a work about cBackend,i found a the Module data is different from llvm2.9,a pass named CBackendNameAllUsedStructsAndMergeFunctions() was removed.for this the module data can not be translated correctly. when i try to rewrite this pass,i found much interfaces of module have been changed. i write a test which contian a struct like this
2012 Aug 27
0
[LLVMdev] where can I find out the documents of how to write a llvm regression test case?
Hi Changcheng, Below is an example took from test/CodeGen/X86/add.ll: define i32 @test1(i32 inreg %a) nounwind { %b = add i32 %a, 128 ret i32 %b ; X32: subl $-128, %eax ; X64: subl $-128, } 1. The first step, you write a function by using LLVM IR. define i32 @test1(i32 inreg %a) nounwind { %b = add i32 %a, 128 ret i32 %b } This will be left to LLVM toolchain to generate
2012 Aug 28
1
[LLVMdev] How to write a regression test case?
thank yang,thank Wei-Ren! i feel i am a question boy,because i has another question now. i want to check if a program output right result,which example in llvm/test/* can give me some idea? suppose i have a helloworld program if it run well,it can give me a result "helloworld",so i want to check if the result is "helloworld". best wishes! changcheng On Tue, Aug 28, 2012
2012 Aug 27
0
[LLVMdev] where can I find out the documents of how to write a llvm regression test case?
> 2.i want to write such a test:translate a *.ll(i.e:hello.ll) file to a > *.c file(i.e:hello.c) with llc,then verify if the .c file contian a > certain string(i.e:"abc:). so: It seems you want to test LLVM C backend, go looking for llvm-3.0.src/test/CodeGen/CBackend/* (C backend had been removed from LLVM 3.1). HTH, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute
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
2012 Aug 31
0
[LLVMdev] How to write a regression test case?
Hi Changcheng, The question you ask seems to be a different topic from this thread. If possible, I sugguest you lauch another thread so that people know what you want to ask by looking at subject. Since you're working on C backend, you may want to collaborate with Roel, who is working on C backend, too [1]. Regards, chenwj [1]
2012 Aug 28
0
[LLVMdev] How to write a regression test case?
> still a question: > what does "; PR1028" means? I believe it means this test case addresses bug report (pr, problem report) 1028 [1]. In other words, this test case guarantee that pr1028 will not back again. If so, it will fail. Regards, chenwj [1] http://llvm.org/bugs/show_bug.cgi?id=1028 -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science,
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 >
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?
2012 Aug 29
2
[LLVMdev] How to write a regression test case?
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 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
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 >
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 changed
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> wrote: >> hi,yang: >> how
2012 Aug 28
2
[LLVMdev] How to write a regression test case?
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 unsigned int fct(unsigned int n) { if(n>0) return fct(n-1)*n; else return 1; } /* end example.c */ /* lit.local.cfg */ config.suffixes = ['.c', '.cpp', '.ll'] targets =
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>: >> hi,yang: >> sorry to
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>: >>
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 indicates a temporary file for output. ".s" is just a suffix I used