Displaying 20 results from an estimated 32 matches for "fldl".
Did you mean:
fld
2013 Oct 19
2
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
...v --target=i686-pc-mingw sqrt.s
The output format is file format ELF32-i386, i wanna to know
is there a way to output COFF format along with target=i686-pc-mingw.
because I want to compile to following asm file for both linux/gcc and
windows/visual C++.
.global sqrt
.type sqrt, at function
sqrt: fldl 4(%esp)
fsqrt
fstsw %ax
sub $12,%esp
fld %st(0)
fstpt (%esp)
mov (%esp),%ecx
and $0x7ff,%ecx
cmp $0x400,%ecx
jnz 1f
and $0x200,%eax
sub $0x100,%eax
sub %eax,(%esp)
fstp %st(0)
fldt (%esp)
1: add $12,%esp
fstpl 4(%esp)
fldl 4(%esp)
ret
>
> Cheers,
> Rafael
--
此致
礼
罗勇刚
Yours...
2013 Oct 21
0
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
...The output format is file format ELF32-i386, i wanna to know
> is there a way to output COFF format along with target=i686-pc-mingw.
> because I want to compile to following asm file for both linux/gcc and
> windows/visual C++.
>
> .global sqrt
> .type sqrt, at function
> sqrt: fldl 4(%esp)
> fsqrt
> fstsw %ax
> sub $12,%esp
> fld %st(0)
> fstpt (%esp)
> mov (%esp),%ecx
> and $0x7ff,%ecx
> cmp $0x400,%ecx
> jnz 1f
> and $0x200,%eax
> sub $0x100,%eax
> sub %eax,(%esp)
> fstp %st(0)
> fldt (%esp)
> 1: add $12,%esp
> fstpl 4(%esp)
&...
2011 Jan 03
0
[LLVMdev] x86 disassembler rejecting valid code
Hi,
The x86 (32-bit) disassembler can't disassemble any of the following:
0x2b 0xc9
0x8a 0xc8
0xdd 0x04 0x24
These are:
subl %ecx, %ecx
movb %al, %cl
fldl (%esp)
I've attached patches to bug#8873 which fix all these issues, but I'm not
confident that I've fixed them the right way.
The first two problems are caused by the instructions setting
'isCodeGenOnly = 1', which causes tblgen to miss them from the
disassembler's table...
2013 Oct 22
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
For example, I execute the following command sequences:
H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s
#.globl _sqrt
.global sqrt
#.type sqrt, at function
#_sqrt:
sqrt: fldl 4(%esp)
fsqrt
fstsw %ax
sub $12,%esp
fld %st(0)
fstpt (%esp)
mov (%esp),%ecx
and $0x7ff,%ecx
cmp $0x400,%ecx
jnz 1f
and $0x200,%eax
sub $0x100,%eax
sub %eax,(%esp)
fstp %st(0)
fldt (%esp)...
2004 Aug 06
2
preprocessor performance (was Re: Memory leak in denoiser + a few questions)
Jean-Marc Valin wrote:
>If you set the denoiser to "on" and the VAD to "off", what difference
>does it make in CPU time?
>
<p>Same program, running on Athlon XP 1700+:
Test 1, using VAD, but AGC, denoise off:
tevek@canarsie:~/work/hms/app_conference $ time ./vad_test
/tmp/demo-instruct.sw 5
reading from /tmp/demo-instruct.sw, repeating 5 times
read 537760
2013 Oct 22
0
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...ct 22, 2013 at 7:08 AM, 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com>wrote:
> For example, I execute the following command sequences:
>
> H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s
> #.globl _sqrt
> .global sqrt
> #.type sqrt, at function
> #_sqrt:
> sqrt: fldl 4(%esp)
> fsqrt
> fstsw %ax
> sub $12,%esp
> fld %st(0)
> fstpt (%esp)
> mov (%esp),%ecx
> and $0x7ff,%ecx
> cmp $0x400,%ecx
> jnz 1f
> and $0x200,%eax
> sub $0x100,%eax
>...
2008 Mar 26
4
[LLVMdev] Wrong calling convention?
...oo6GetFooEv+3>: sub $0x14,%esp
0x6e08b5aa <_ZN3Foo6GetFooEv+6>: lea -0x8(%ebp),%eax
0x6e08b5ad <_ZN3Foo6GetFooEv+9>: mov %eax,(%esp)
0x6e08b5b0 <_ZN3Foo6GetFooEv+12>: call 0x6e08b5bc <Foo>
0x6e08b5b5 <_ZN3Foo6GetFooEv+17>: fldl -0x8(%ebp)
0x6e08b5b8 <_ZN3Foo6GetFooEv+20>: leave
0x6e08b5b9 <_ZN3Foo6GetFooEv+21>: ret
End of assembler dump.
I guess that g++ exploits its knowledge of Foo's internals for deciding
how to return the class. But my compiler knows nothing about Foo, so I
must disable...
2013 Oct 19
0
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
On 19 October 2013 06:01, 罗勇刚(Yonggang Luo) <luoyonggang at gmail.com> wrote:
> I found that access llvm-mc from clang driver is impossible, and I
> want to use llvm-mc to compile assembly files, how to do that?
Try "clang -integrated-as -c test.s"
Cheers,
Rafael
2005 May 13
1
[LLVMdev] gmake check failures on FreeBSD
...sts.llx:
Assertion failed: (isNew && "Got into the map somehow?"), function
AddLegalizedOperand, file
/usr/home/llvm/obj/../lib/CodeGen/SelectionDAG/LegalizeDAG.cpp, line 79.
.text
.align 16
.globl test1
.type test1, @function
test1:
fldl 4(%esp)
ftst
fstp %st(0)
fnstsw
sahf
setne %al
movzbl %al, %eax
#FP_REG_KILL
ret
Abort trap (core dumped)
FAIL:
/usr/home/llvm/obj/../test/Regression/CodeGen/X86/fast-cc-pass-in-regs.ll:
Does not have a RUN line
Running /usr/home/ll...
2013 Oct 21
1
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
...rmat ELF32-i386, i wanna to know
>> is there a way to output COFF format along with target=i686-pc-mingw.
>> because I want to compile to following asm file for both linux/gcc and
>> windows/visual C++.
>>
>> .global sqrt
>> .type sqrt, at function
>> sqrt: fldl 4(%esp)
>> fsqrt
>> fstsw %ax
>> sub $12,%esp
>> fld %st(0)
>> fstpt (%esp)
>> mov (%esp),%ecx
>> and $0x7ff,%ecx
>> cmp $0x400,%ecx
>> jnz 1f
>> and $0x200,%eax
>> sub $0x100,%eax
>> sub %eax,(%esp)
>> fstp %st(0)
>&g...
2012 Mar 28
2
[LLVMdev] Suboptimal code due to excessive spilling
...# 8-byte Folded Reload
addsd 64(%esp), %xmm2 # 8-byte Folded Reload
addsd 72(%esp), %xmm2 # 8-byte Folded Reload
addsd %xmm2, %xmm0
adcl $0, %esi
cmpl %eax, %edi
movl %edi, %ebx
jne .LBB1_2
.LBB1_3: # %._crit_edge
movsd %xmm0, 80(%esp)
fldl 80(%esp)
addl $88, %esp
popl %esi
popl %edi
popl %ebx
ret
.Ltmp20:
.size foo, .Ltmp20-foo
.Ltmp21:
.cfi_endproc
.Leh_func_end1:
====== Output B ======
======================
foo: # @foo
.Ltmp11:
.cfi_startproc
# BB#0:
pushl %edi
.Ltmp12:
.cfi_def_cfa_...
2013 Oct 19
2
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
I found that access llvm-mc from clang driver is impossible, and I
want to use llvm-mc to compile assembly files, how to do that?
H:\CI\bld\compilers\musl\src\math\i386>clang -c -v --target=i686-pc-mingw sqrt.s
clang version 3.4 (trunk)
Target: i686-pc-mingw
Thread model: posix
Selected GCC installation:
"gcc" -v -c -m32 -o sqrt.o -x assembler sqrt.s
clang.exe: error: unable to
2008 Mar 26
0
[LLVMdev] Wrong calling convention?
...sub $0x14,%esp
> 0x6e08b5aa <_ZN3Foo6GetFooEv+6>: lea -0x8(%ebp),%eax
> 0x6e08b5ad <_ZN3Foo6GetFooEv+9>: mov %eax,(%esp)
> 0x6e08b5b0 <_ZN3Foo6GetFooEv+12>: call 0x6e08b5bc <Foo>
> 0x6e08b5b5 <_ZN3Foo6GetFooEv+17>: fldl -0x8(%ebp)
> 0x6e08b5b8 <_ZN3Foo6GetFooEv+20>: leave
> 0x6e08b5b9 <_ZN3Foo6GetFooEv+21>: ret
> End of assembler dump.
>
> I guess that g++ exploits its knowledge of Foo's internals for deciding
> how to return the class.
How Foo is returned is speci...
2012 Apr 05
0
[LLVMdev] Suboptimal code due to excessive spilling
...# 8-byte Folded Reload
addsd 64(%esp), %xmm2 # 8-byte Folded Reload
addsd 72(%esp), %xmm2 # 8-byte Folded Reload
addsd %xmm2, %xmm0
adcl $0, %esi
cmpl %eax, %edi
movl %edi, %ebx
jne .LBB1_2
.LBB1_3: # %._crit_edge
movsd %xmm0, 80(%esp)
fldl 80(%esp)
addl $88, %esp
popl %esi
popl %edi
popl %ebx
ret
.Ltmp20:
.size foo, .Ltmp20-foo
.Ltmp21:
.cfi_endproc
.Leh_func_end1:
====== Output B ======
======================
foo: # @foo
.Ltmp11:
.cfi_startproc
# BB#0:
pushl %edi
.Ltmp12:
.cfi_def_cfa_...
2013 Oct 23
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...Luo) <luoyonggang at gmail.com>wrote:
>
>> For example, I execute the following command sequences:
>>
>> H:\CI\bld\compilers\musl\src\math\i386>type sqrt.s
>> #.globl _sqrt
>> .global sqrt
>> #.type sqrt, at function
>> #_sqrt:
>> sqrt: fldl 4(%esp)
>> fsqrt
>> fstsw %ax
>> sub $12,%esp
>> fld %st(0)
>> fstpt (%esp)
>> mov (%esp),%ecx
>> and $0x7ff,%ecx
>> cmp $0x400,%ecx
>> jnz 1f
>> and $0x200,%e...
2007 Apr 18
4
[patch 0/4] Clean up asm/bugs.h, identify_cpu() and update COMPAT_VDSO
Hi Andi,
Four patches:
- clean up asm/bugs.h, by moving all the C code into its own C file
- split identify_cpu() into boot and secondary variants, so that
boot-time setup functions can be marked __init
- repost of the COMPAT_VDSO patches with a bit more robustness from
unknown DT_tags, and functions marked __init, since all this is
boot-time only setup.
Thanks,
J
--
2007 Apr 18
4
[patch 0/4] Clean up asm/bugs.h, identify_cpu() and update COMPAT_VDSO
Hi Andi,
Four patches:
- clean up asm/bugs.h, by moving all the C code into its own C file
- split identify_cpu() into boot and secondary variants, so that
boot-time setup functions can be marked __init
- repost of the COMPAT_VDSO patches with a bit more robustness from
unknown DT_tags, and functions marked __init, since all this is
boot-time only setup.
Thanks,
J
--
2010 Jun 07
1
[LLVMdev] XMM in X86 Backend
...b*b);
return c;
}
llc produced somthing like....
movsd 16(%ebp), %xmm0
mulsd %xmm0, %xmm0
addsd 8(%ebp), %xmm0
movsd %xmm0, (%esp)
.......
fstpl -8(%ebp
movsd -8(%ebp), %xmm0
addsd .LC1, %xmm0
movsd %xmm0, -8(%ebp)
fldl -8(%ebp)
LLVM Backend is using xmms it involves a lot of register moves. llc has one
option -mcpu=686, where output does not use xmm but it disables some other
instructions also. Is there any fine grain optimization flag like ( -mfpmath
= 387 which is present in gcc) which would just instructi...
2012 Jan 25
0
[LLVMdev] Best way to interface with MSVC _ftol2 runtime function for fptoui?
...s bitcode:
define i64 @foo(double %x) nounwind readnone {
init:
%0 = fptosi double %x to i64
ret i64 %0
}
gets compiled by LLVM 3.0 to:
_foo: # @foo
# BB#0: # %init
subl $20, %esp
movsd 24(%esp), %xmm0
movsd %xmm0, 8(%esp)
fldl 8(%esp)
fisttpll (%esp)
movl (%esp), %eax
movl 4(%esp), %edx
addl $20, %esp
ret
with a seemingly redundant movsd pair before the fisttp instruction.
-Joe
2008 Mar 26
0
[LLVMdev] Wrong calling convention?
Hi,
> define internal i1 @Addr_045442A0() {
> alloca [8 x i8], align 4 ; <[8 x i8]*>:1 [#uses=2]
> alloca i1, align 4 ; <i1*>:2 [#uses=2]
> tail call void @F95478DA5_FFI_FN( [8 x i8]* %1 sret )
this call uses the "struct-return" convention (due to the sret attribute).
On x86 this means that the caller is responsible for adjusting the stack
pointer after