search for: fldt

Displaying 11 results from an estimated 11 matches for "fldt".

Did you mean: flat
2011 Aug 31
1
[LLVMdev] FP Stack overflow with inline asm
...e of our projects to LLVM we discovered some strange behavior. We tracked the issue down to the following test case: int main() { double v = 0.84711; int r; __asm__("fistl %0": "=m"(r) : "t"(v)); return r; } The (relevant) clang generated asm looks like this: fldt 0.84711 ## InlineAsm Start fistl -4(%ebp) ## InlineAsm End The compiler is loading the constant into the top fpu stack register (as requested by "t" constraint) and then is executing the asm statement. The asm statement doesn't pop the value from the fp stack. Running this statement...
2013 Oct 19
2
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
...o 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 sincerely, Yonggang Luo
2013 Oct 21
0
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
...bal 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 > sincerely, > Yonggang Luo > > _______________________________________________ > LLVM De...
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
2013 Oct 21
1
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
...%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 >> sincerely, >> Yonggang Lu...
2013 Oct 22
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...qrt: 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 H:\CI\bld\compilers\musl\src\math\i386>type sqrt.c float __cdecl sqrt(float z) { return 0.0; } H:\CI\bld\compilers\musl\src\math\i386>clang -integrated-as -c -v --target=i686 -pc-win32 sqrt.s clang versio...
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
2013 Oct 22
0
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...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 > > H:\CI\bld\compilers\musl\src\math\i386>type sqrt.c > float __cdecl sqrt(float z) > { > return 0.0; > } > H:\CI\bld\compilers\musl\src\math\i386>clang -integrate...
2013 Oct 23
2
[LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
...) >> 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 >> >> H:\CI\bld\compilers\musl\src\math\i386>type sqrt.c >> float __cdecl sqrt(float z) >> { >> return 0.0; >> } >> H:\CI\bld\compi...
2013 Oct 21
0
[LLVMdev] LLVMdev Digest, Vol 112, Issue 56
...bal 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 >    sincerely, > Yonggang Luo > > _______________________________________________ > LLVM De...
2013 Oct 22
0
[LLVMdev] LLVMdev Digest, Vol 112, Issue 59
...%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 > > H:\CI\bld\compilers\musl\src\math\i386>type sqrt.c > float __cdecl sqrt(float z) > { > return 0.0; > } > H:\CI\bld\compilers\musl\src\math\i386>clang -integrated-a...