[cfe-users] Bus Error with clang and clang++ on Solaris 11 SPARC (32bit0 RELEASE_380/rc3

2016-02-25 Thread Dave Ryan via cfe-users
All, These 2 simple applications will cause a bus error on SPARC Solaris 11. Note the programs run fine with gcc and g++ 5.3.0. Dave /* c program causes bus error on solaris */ #include int main() { long double x = 1.2; printf("x: %Lg", x); } // c++ program causes bus error #incl

Re: [cfe-users] RELEASE_380/rc3 clang failed tests

2016-02-25 Thread Hans Wennborg via cfe-users
Hi Dave, On Thu, Feb 25, 2016 at 2:32 PM, Dave Ryan via cfe-users wrote: > Scanning dependencies of target check-all > [100%] Running all regression tests > lit.py: lit.cfg:195: note: using clang: '/home/dave/llvm_build/./bin/clang' > FAIL: Clang :: CodeGen/constructor-attribute.c (1627 of 24255)

[cfe-users] Failed Test on SPARC (solaris 11) clang (and bus core dumps)

2016-02-25 Thread Dave Ryan via cfe-users
Scanning dependencies of target check-all [100%] Running all regression tests lit.py: lit.cfg:195: note: using clang: '/home/dave/llvm_build/./bin/clang' FAIL: Clang :: CodeGen/constructor-attribute.c (1627 of 24255) TEST 'Clang :: CodeGen/constructor-attribute.c' FAILED *

[cfe-users] RELEASE_380/rc3 clang failed tests

2016-02-25 Thread Dave Ryan via cfe-users
Scanning dependencies of target check-all [100%] Running all regression tests lit.py: lit.cfg:195: note: using clang: '/home/dave/llvm_build/./bin/clang' FAIL: Clang :: CodeGen/constructor-attribute.c (1627 of 24255) TEST 'Clang :: CodeGen/constructor-attribute.c' FAILED *

Re: [cfe-users] PointerTy and VectorTy

2016-02-25 Thread David Blaikie via cfe-users
PointerType::getElementType should give you the vector type, which should have the size and element type On Feb 25, 2016 5:03 AM, "Simona Simona via cfe-users" < cfe-users@lists.llvm.org> wrote: > Hello, > > I'm using LLVM 3.4 and have the following IR instruction: >%tmp1 = load *<2 x

[cfe-users] PointerTy and VectorTy

2016-02-25 Thread Simona Simona via cfe-users
Hello, I'm using LLVM 3.4 and have the following IR instruction: %tmp1 = load *<2 x float>** %tmp, align 1, !dbg !26 The operand 0 of the load instruction is of type PointerType. I've checked this using: I.getOperand(0)->getType()->isPointerTy(). I would appreciate if someone could tel