Displaying 20 results from an estimated 272 matches for "subl".
Did you mean:
sub
2013 Feb 14
2
[LLVMdev] Question about fastcc assumptions and seemingly superfluous %esp updates
...)
%ww = sub i32 %q, 6
ret i32 %ww
}
Built with (ToT LLVM):
llc < ~/temp/z.ll -march=x86 -tailcallopt -O3
The produced code is (cleaned up a bit)
tailcallee: # @tailcallee
movl 4(%esp), %eax
ret $12
tailcaller: # @tailcaller
subl $12, %esp
movl %edx, 20(%esp)
movl %ecx, 16(%esp)
addl $12, %esp
jmp tailcallee # TAILCALL
foo: # @foo
subl $12, %esp
movl 20(%esp), %ecx
movl 16(%esp), %edx
calll tailcaller
subl $12, %esp
addl $-6, %eax
addl $12, %...
2013 Feb 15
0
[LLVMdev] Question about fastcc assumptions and seemingly superfluous %esp updates
...with (ToT LLVM):
> llc < ~/temp/z.ll -march=x86 -tailcallopt -O3
>
> The produced code is (cleaned up a bit)
>
> tailcallee: # @tailcallee
> movl 4(%esp), %eax
> ret $12
>
> tailcaller: # @tailcaller
> subl $12, %esp
> movl %edx, 20(%esp)
> movl %ecx, 16(%esp)
> addl $12, %esp
> jmp tailcallee # TAILCALL
>
> foo: # @foo
> subl $12, %esp
> movl 20(%esp), %ecx
> movl 16(%esp), %edx
> calll tailcaller
&...
2008 Jun 27
2
[LLVMdev] Recently failing vector tests
Running on x86-64 linux:
FAIL: test/CodeGen/X86/vec_ins_extract.ll
Failed with exit(1) at line 1
while running: llvm-as < test/CodeGen/X86/vec_ins_extract.ll | opt -scalarrepl -instcombine | llc -march=x86 -mcpu=yonah | not grep sub.*esp
subl $16, %esp
subl $16, %esp
subl $16, %esp
subl $16, %esp
child process exited abnormally
FAIL: test/CodeGen/X86/vec_shuffle-10.ll
Failed with exit(1) at line 3
while running: llvm-as < test/CodeGen/X86/vec_shuffle-10.ll | llc -march=x86 -mattr=+sse2 | not grep...
2018 Aug 28
1
"utils::file.edit" does not understand "editor" with additional arguments
I am using Sublime Text as my editor. If I run `subl -n .Rprofile` in bash, a file would be opened in a new window.
Back in R, if I run this
> file.edit(".Rprofile", editor="'subl -n'")
sh: 'subl -n': command not found
Warning message:
error in running command
However, the...
2013 Feb 15
2
[LLVMdev] Question about fastcc assumptions and seemingly superfluous %esp updates
...p/z.ll -march=x86 -tailcallopt -O3
>>
>> The produced code is (cleaned up a bit)
>>
>> tailcallee: # @tailcallee
>> movl 4(%esp), %eax
>> ret $12
>>
>> tailcaller: # @tailcaller
>> subl $12, %esp
>> movl %edx, 20(%esp)
>> movl %ecx, 16(%esp)
>> addl $12, %esp
>> jmp tailcallee # TAILCALL
>>
>> foo: # @foo
>> subl $12, %esp
>> movl 20(%esp), %ecx
>> movl 16(%e...
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 binary code.
2. Then in the test case above, you add comment l...
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
2013 Feb 15
0
[LLVMdev] Question about fastcc assumptions and seemingly superfluous %esp updates
...with (ToT LLVM):
> llc < ~/temp/z.ll -march=x86 -tailcallopt -O3
>
> The produced code is (cleaned up a bit)
>
> tailcallee: # @tailcallee
> movl 4(%esp), %eax
> ret $12
>
> tailcaller: # @tailcaller
> subl $12, %esp
> movl %edx, 20(%esp)
> movl %ecx, 16(%esp)
> addl $12, %esp
> jmp tailcallee # TAILCALL
>
> foo: # @foo
> subl $12, %esp
> movl 20(%esp), %ecx
> movl 16(%esp), %edx
> calll tailcaller
> su...
2007 Sep 25
2
[LLVMdev] RFC: Tail call optimization X86
...; FastCC use to be caller pops arguments so there was no stack
> > adjustment after the
> > call to qux. Now FastCC has callee pops arguments on return semantics
> > so the
> > x86 backend inserts a stack adjustment after the call.
> >
> > _array:
> > subl $12, %esp
> > movss LCPI1_0, %xmm0
> > mulss 16(%esp), %xmm0
> > movss %xmm0, (%esp)
> > call L_qux$stub
> > subl $4, %esp << stack adjustment because qux pops
> > arguments on return
> >...
2008 Jun 30
2
[LLVMdev] Recently failing vector tests
...; On Jun 27, 2008, at 3:11 AMPDT, Duncan Sands wrote:
> > FAIL: test/CodeGen/X86/vec_shuffle-10.ll
> > Failed with exit(1) at line 3
> > while running: llvm-as < test/CodeGen/X86/vec_shuffle-10.ll | llc -
> > march=x86 -mattr=+sse2 | not grep {sub.*esp}
> > subl $16, %esp
> > subl $16, %esp
> > child process exited abnormally
>
> Is the code actually loading and storing to the stack, or just
> allocating space?
> If the latter it is probably this patch:
> http://llvm.org/viewvc/llvm-project?view=rev&revision=5...
2013 Feb 15
1
[LLVMdev] Question about fastcc assumptions and seemingly superfluous %esp updates
...temp/z.ll -march=x86 -tailcallopt -O3
>>
>> The produced code is (cleaned up a bit)
>>
>> tailcallee: # @tailcallee
>> movl 4(%esp), %eax
>> ret $12
>>
>> tailcaller: # @tailcaller
>> subl $12, %esp
>> movl %edx, 20(%esp)
>> movl %ecx, 16(%esp)
>> addl $12, %esp
>> jmp tailcallee # TAILCALL
>>
>> foo: # @foo
>> subl $12, %esp
>> movl 20(%esp), %ecx
>> movl 16(%esp), %e...
2007 Sep 24
2
[LLVMdev] RFC: Tail call optimization X86
...; change preceeding line form ... | grep 8 to ..| grep 9 since
> +; with new fastcc has std call semantics causing a stack adjustment
> +; after the function call
>
> Not sure if I understand this. Can you illustrate with an example?
Sure
The code generated used to be
_array:
subl $12, %esp
movss LCPI1_0, %xmm0
mulss 16(%esp), %xmm0
movss %xmm0, (%esp)
call L_qux$stub
mulss LCPI1_0, %xmm0
addl $12, %esp
ret
FastCC use to be caller pops arguments so there was no stack
adjustment after the
call...
2014 Aug 08
4
[LLVMdev] Efficient Pattern matching in Instruction Combine
...b) {
*return ((~a & b) | a);*
}
int main(){
int a, b;
scanf("%d %d", &a, &b);
return cal(a,b);
}
*X86 .s file with clang at O2 for above program :*
suyog at suyog-Inspiron-N5010:~$ Open/rbuild/bin/clang -S -O2 1.c
main: # @main
# BB#0:
subl $28, %esp
leal 20(%esp), %eax
movl %eax, 8(%esp)
leal 24(%esp), %eax
movl %eax, 4(%esp)
movl $.L.str, (%esp)
calll __isoc99_scanf
movl 20(%esp), %eax
* orl 24(%esp), %eax*
addl $28, %esp
retl
As seen, optimization happened at IR...
2007 Sep 24
0
[LLVMdev] RFC: Tail call optimization X86
...to ..| grep 9 since
>> +; with new fastcc has std call semantics causing a stack adjustment
>> +; after the function call
>>
>> Not sure if I understand this. Can you illustrate with an example?
>
> Sure
>
> The code generated used to be
> _array:
> subl $12, %esp
> movss LCPI1_0, %xmm0
> mulss 16(%esp), %xmm0
> movss %xmm0, (%esp)
> call L_qux$stub
> mulss LCPI1_0, %xmm0
> addl $12, %esp
> ret
>
> FastCC use to be caller pops arguments so there was...
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 file contian a
certa...
2008 Jun 27
0
[LLVMdev] Recently failing vector tests
On Jun 27, 2008, at 3:11 AMPDT, Duncan Sands wrote:
> FAIL: test/CodeGen/X86/vec_shuffle-10.ll
> Failed with exit(1) at line 3
> while running: llvm-as < test/CodeGen/X86/vec_shuffle-10.ll | llc -
> march=x86 -mattr=+sse2 | not grep {sub.*esp}
> subl $16, %esp
> subl $16, %esp
> child process exited abnormally
Is the code actually loading and storing to the stack, or just
allocating space?
If the latter it is probably this patch:
http://llvm.org/viewvc/llvm-project?view=rev&revision=52750
Rounding up the stack size do...
2010 Jan 04
0
[LLVMdev] Tail Call Optimisation
On Monday 04 January 2010 05:16:40 Jeffrey Yasskin wrote:
> On Sun, Jan 3, 2010 at 10:50 PM, Jon Harrop <jon at ffconsultancy.com> wrote:
> > LLVM's TCO already handles mutual recursion.
>
> Only for fastcc functions
Yes.
> compiled with -tailcallopt, right?
If you use the compiler, yes.
> http://llvm.org/docs/CodeGenerator.html#tailcallopt
>
> I believe
2010 Jan 04
2
[LLVMdev] Tail Call Optimisation
On Sun, Jan 3, 2010 at 10:50 PM, Jon Harrop <jon at ffconsultancy.com> wrote:
> On Monday 04 January 2010 03:33:06 Simon Harris wrote:
>> On 04/01/2010, at 3:01 PM, Jon Harrop wrote:
>> > I am certainly interested in tail calls because my HLVM project relies
>> > upon LLVM's tail call elimination. However, I do not understand what tail
>> > calls LLVM
2008 Jun 30
0
[LLVMdev] Recently failing vector tests
...2008, at 3:11 AMPDT, Duncan Sands wrote:
>>> FAIL: test/CodeGen/X86/vec_shuffle-10.ll
>>> Failed with exit(1) at line 3
>>> while running: llvm-as < test/CodeGen/X86/vec_shuffle-10.ll | llc -
>>> march=x86 -mattr=+sse2 | not grep {sub.*esp}
>>> subl $16, %esp
>>> subl $16, %esp
>>> child process exited abnormally
>>
>> Is the code actually loading and storing to the stack, or just
>> allocating space?
>> If the latter it is probably this patch:
>> http://llvm.org/viewvc/llvm-project?v...
2008 Jun 30
1
[LLVMdev] Recently failing vector tests
...an Sands wrote:
> >>> FAIL: test/CodeGen/X86/vec_shuffle-10.ll
> >>> Failed with exit(1) at line 3
> >>> while running: llvm-as < test/CodeGen/X86/vec_shuffle-10.ll | llc -
> >>> march=x86 -mattr=+sse2 | not grep {sub.*esp}
> >>> subl $16, %esp
> >>> subl $16, %esp
> >>> child process exited abnormally
> >>
> >> Is the code actually loading and storing to the stack, or just
> >> allocating space?
> >> If the latter it is probably this patch:
> >> ht...