search for: fistl

Displaying 3 results from an estimated 3 matches for "fistl".

Did you mean: fist
2011 Aug 31
1
[LLVMdev] FP Stack overflow with inline asm
Hi LLVM hackers, when switching one 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...
2000 Nov 07
1
More BeOS woe
...constraints in an `asm' /Be3/Source/CVS/vorbis/lib/os.h:94: inconsistent operand constraints in an `asm' /Be3/Source/CVS/vorbis/lib/os.h:94: inconsistent operand constraints in an `asm' (yes they are five different errors) line 94 is the asm line in vorbis_ftoi __asm__("fistl %0": "=m"(i) : "t"(f)); I'm totally out of my depth when it comes to asm unless its on OS/390, and I've never used inline assembler before, so I need help. Dave --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.or...
2001 Jan 29
1
Mac OS X/Darwin patch for libvorbis
...TROL /* both GCC and MSVC are kinda stupid about rounding/casting to int. Because of encapsulation constraints (GCC can't see inside the asm block and so we end up doing stupid things like a store/load that @@ -109,27 +117,13 @@ static inline int vorbis_ftoi(double f){ __asm__("fistl %0": "=m"(i) : "t"(f)); return(i); } - -#else -/* this is for beos */ - -typedef int vorbis_fpu_control; -static int vorbis_ftoi(double f){ - return (int)(f+.5); -} - -/* We don't have special code for this compiler/arch, so do it the slow way */ -#define vorbis_fp...