search for: myfloat

Displaying 4 results from an estimated 4 matches for "myfloat".

Did you mean: mfloat
2009 Feb 11
1
[LLVMdev] Suggested change to docs re: double/float constant syntax.
...e 32-bit format. For instance, this file: target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32- i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64- f80:128:128" target triple = "i386-apple-darwin9.5" @mydouble = constant double 0x432ff973cafa8000 @myfloat = constant float 0x405b126f signals this error: uccello:/tmp clements$ llvm-as foo2.s llvm-as: foo2.s:6:27: floating point constant invalid for type @myfloat = constant float 0x405b126f ^ If I'm correct in this assumption, I suggest mentioning this in the langua...
2009 Dec 07
2
[LLVMdev] a constant folding case causing different results w/ot optimization
Hi, The optimizer folds "(unsigned int) -1.0f" to 0. As a result, the following routine foo returns 0 with optimization, and returns -1 (0xffffffff) without optimization. unsigned int foo() { float myfloat = -1.0f; unsigned int myint = (unsigned int) myfloat; return myint; } INSTCOMBINE ITERATION #0 on IC: ConstFold to: i32 0 from: %conv = fptoui float -1.000000e+000 to i32 ; <i32> [#uses=1] While the result of "(unsigned int) -1.0f" is probably implem...
2010 Dec 27
0
[LLVMdev] how to convert from float to int with round to even
Hi! is there an instruction or intrinsic that converts from float to integer with round to even? It should function like open cl-style convert_int_rte(myFloat) -Jochen
2009 Aug 25
1
[LLVMdev] [llvm-commits] [llvm] r79615 - in /llvm/trunk/test/Analysis/Profiling: ./ 2009-08-21-irregular-loop.ll 2009-08-21-only-one-block.ll 2009-08-21-several-blocks.ll dg.exp
Hi, Andreas Neustifter wrote: > Hi Daniel! > > Daniel Dunbar wrote: >> Hi Andreas, >> >> I talked with Chris about this the morning, and I think we agreed that >> lli based tests for this stuff are ok, as long as we limit them to >> just a few. The main thing we basically need lli for is to test the >> generation of the profiling information;