oota-llvm.git
16 years agoNote EH stuff for x86-64/linux
Anton Korobeynikov [Sat, 11 Oct 2008 18:27:16 +0000 (18:27 +0000)]
Note EH stuff for x86-64/linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57378 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoWe do support PIC on x86-64/linux
Anton Korobeynikov [Sat, 11 Oct 2008 18:27:00 +0000 (18:27 +0000)]
We do support PIC on x86-64/linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57377 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoStrip out 2.3 info, make space for 2.4 info. I'd appreciate it if
Chris Lattner [Sat, 11 Oct 2008 18:18:28 +0000 (18:18 +0000)]
Strip out 2.3 info, make space for 2.4 info.  I'd appreciate it if
various component owners could look through and update their areas
in the known-problems section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57376 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUnbreak DbgStopPointInst::getFileName().
Daniel Dunbar [Sat, 11 Oct 2008 06:40:56 +0000 (06:40 +0000)]
Unbreak DbgStopPointInst::getFileName().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57373 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agosimplify comparison
Chris Lattner [Sat, 11 Oct 2008 00:08:02 +0000 (00:08 +0000)]
simplify comparison

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57371 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix SSE4.1 roundss, roundsd. While the instructions have
Dale Johannesen [Fri, 10 Oct 2008 23:51:03 +0000 (23:51 +0000)]
Fix SSE4.1 roundss, roundsd.  While the instructions have
the same pattern as roundpd/roundps, the Intel compiler
builtins do not:  rounds* has an extra operand.  Fixes
gcc.target/i386/sse4_1-rounds[sd]-[1234].c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57370 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCheck loop exit predicate properly while eliminating one iteration loop.
Devang Patel [Fri, 10 Oct 2008 22:02:57 +0000 (22:02 +0000)]
Check loop exit predicate properly while eliminating one iteration loop.
This patch fixes PR 2869

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57369 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a thinko and unbreak sparc default CC
Anton Korobeynikov [Fri, 10 Oct 2008 21:47:37 +0000 (21:47 +0000)]
Fix a thinko and unbreak sparc default CC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57368 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemove some overzealous checks that were rejecting
Dale Johannesen [Fri, 10 Oct 2008 21:04:42 +0000 (21:04 +0000)]
Remove some overzealous checks that were rejecting
valid comments in inline assembly.
gcc.target/i386/20011009-1.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57365 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoExtend set of return registers on sparc until someone will implement MRV support...
Anton Korobeynikov [Fri, 10 Oct 2008 20:30:14 +0000 (20:30 +0000)]
Extend set of return registers on sparc until someone will implement MRV support there. At least, this will allow libgcc compile, however we are not ABI-compatible with stuff compiled with native gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57364 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoIgnore extra 'r' modifier for now
Anton Korobeynikov [Fri, 10 Oct 2008 20:29:50 +0000 (20:29 +0000)]
Ignore extra 'r' modifier for now

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57363 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse expand for smul_lohi for now
Anton Korobeynikov [Fri, 10 Oct 2008 20:29:31 +0000 (20:29 +0000)]
Use expand for smul_lohi for now

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57362 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd testcase for 'r' inline asm operand
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:59 +0000 (20:28 +0000)]
Add testcase for 'r' inline asm operand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57361 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoThis does not fail anymore
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:32 +0000 (20:28 +0000)]
This does not fail anymore

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57360 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd rudimentary support for 'r' register operand
Anton Korobeynikov [Fri, 10 Oct 2008 20:28:10 +0000 (20:28 +0000)]
Add rudimentary support for 'r' register operand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57359 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCleanup
Anton Korobeynikov [Fri, 10 Oct 2008 20:27:31 +0000 (20:27 +0000)]
Cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57358 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCMake: updated lib/Analysis/CMakeLists.txt.
Oscar Fuentes [Fri, 10 Oct 2008 18:51:36 +0000 (18:51 +0000)]
CMake: updated lib/Analysis/CMakeLists.txt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57357 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRevert r57340 move guard mutex in getPointerToFunction as this can cause
Mon P Wang [Fri, 10 Oct 2008 18:07:10 +0000 (18:07 +0000)]
Revert r57340 move guard mutex in getPointerToFunction as this can cause
deadlock issues with java

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57356 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix build failure.
Devang Patel [Fri, 10 Oct 2008 17:57:50 +0000 (17:57 +0000)]
Fix build failure.
Patch by Erick Tryzelaar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57355 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix memleak by cleaning the global sets on pass exit
Nuno Lopes [Fri, 10 Oct 2008 16:25:50 +0000 (16:25 +0000)]
fix memleak by cleaning the global sets on pass exit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57353 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd sparc test for memory operand used in inline asm
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:33 +0000 (10:15 +0000)]
Add sparc test for memory operand used in inline asm

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57348 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoThis is not failing anymore
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:18 +0000 (10:15 +0000)]
This is not failing anymore

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57347 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd rudimentary asmprinter support for printing inline asm operands for sparc.
Anton Korobeynikov [Fri, 10 Oct 2008 10:15:03 +0000 (10:15 +0000)]
Add rudimentary asmprinter support for printing inline asm operands for sparc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57346 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd dummy 'm' inline asm constraint handler for Sparc. I'm not sure, whether it is...
Anton Korobeynikov [Fri, 10 Oct 2008 10:14:47 +0000 (10:14 +0000)]
Add dummy 'm' inline asm constraint handler for Sparc. I'm not sure, whether it is correct, however :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57345 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCleanup
Anton Korobeynikov [Fri, 10 Oct 2008 10:14:15 +0000 (10:14 +0000)]
Cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57344 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix copy-and-paste-o.
Owen Anderson [Fri, 10 Oct 2008 08:53:07 +0000 (08:53 +0000)]
Fix copy-and-paste-o.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57343 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a basic intra-procedural escape analysis. This hasn't be extensively tested...
Owen Anderson [Fri, 10 Oct 2008 08:36:25 +0000 (08:36 +0000)]
Add a basic intra-procedural escape analysis.  This hasn't be extensively tested yet, but feedback is welcome.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57342 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMoved guard mutex upwards to guard materializing a function
Mon P Wang [Fri, 10 Oct 2008 01:47:42 +0000 (01:47 +0000)]
Moved guard mutex upwards to guard materializing a function
in getPointerToFunction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57340 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded missing print functions that take a raw_ostream
Mon P Wang [Fri, 10 Oct 2008 01:43:55 +0000 (01:43 +0000)]
Added missing print functions that take a raw_ostream

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57339 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFixed definition of llvm_anyptr_ty
Mon P Wang [Fri, 10 Oct 2008 01:41:18 +0000 (01:41 +0000)]
Fixed definition of llvm_anyptr_ty

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57338 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoGenerated files for previous checkin.
Dale Johannesen [Thu, 9 Oct 2008 23:01:34 +0000 (23:01 +0000)]
Generated files for previous checkin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57331 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoA file missed from previous checkin.
Dale Johannesen [Thu, 9 Oct 2008 23:01:07 +0000 (23:01 +0000)]
A file missed from previous checkin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57330 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a "loses information" return value to APFloat::convert
Dale Johannesen [Thu, 9 Oct 2008 23:00:39 +0000 (23:00 +0000)]
Add a "loses information" return value to APFloat::convert
and APFloat::convertToInteger.  Restore return value to
IEEE754.  Adjust all users accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57329 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRename APFloat::convertToAPInt to bitcastToAPInt to
Dale Johannesen [Thu, 9 Oct 2008 18:53:47 +0000 (18:53 +0000)]
Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does.  No functional
change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57325 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDon't drop alignment on globals when cloning.
Nick Lewycky [Thu, 9 Oct 2008 06:27:14 +0000 (06:27 +0000)]
Don't drop alignment on globals when cloning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57320 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoget CodeGen/Alpha/mul128.ll to work.
Chris Lattner [Thu, 9 Oct 2008 04:50:56 +0000 (04:50 +0000)]
get CodeGen/Alpha/mul128.ll to work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57318 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAlign EH tables before label is emitted, not after,
Dale Johannesen [Wed, 8 Oct 2008 21:50:21 +0000 (21:50 +0000)]
Align EH tables before label is emitted, not after,
thus aligning the label.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57310 91177308-0d34-0410-b5e6-96231b3b80d8

16 years ago(re)Put const weak strings in appropriate section on Darwin.
Dale Johannesen [Wed, 8 Oct 2008 21:49:47 +0000 (21:49 +0000)]
(re)Put const weak strings in appropriate section on Darwin.
g++dg/abi/key2.C

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57309 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agodont specialize weak functions and the like
Nuno Lopes [Wed, 8 Oct 2008 18:45:59 +0000 (18:45 +0000)]
dont specialize weak functions and the like

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57305 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoComment to be explicit that the enumeration values for CondCodes matter.
Jim Grosbach [Wed, 8 Oct 2008 16:24:35 +0000 (16:24 +0000)]
Comment to be explicit that the enumeration values for CondCodes matter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57295 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse template to distinguish between function variants.
Duncan Sands [Wed, 8 Oct 2008 07:44:52 +0000 (07:44 +0000)]
Use template to distinguish between function variants.
GCC 4.4.0 gives an error on the "int" declaration for example
saying that it has already been declared (using the "short"
one). Using templates here allow the compiler to distinguish
between the function to choose.

Also, "llvm/Support/DataTypes.h" was not included, leading to
error messages about not knowing "uint32_t" for example.

Patch by Samuel Tardieu.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57292 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd <cstdio> include where needed by gcc-4.4.
Duncan Sands [Wed, 8 Oct 2008 07:23:46 +0000 (07:23 +0000)]
Add <cstdio> include where needed by gcc-4.4.
Patch by Samuel Tardieu.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57291 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoregenerate
Chris Lattner [Wed, 8 Oct 2008 06:44:45 +0000 (06:44 +0000)]
regenerate

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57290 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd missing semicolumns in parser rules, those missing semicolumns
Chris Lattner [Wed, 8 Oct 2008 06:44:36 +0000 (06:44 +0000)]
Add missing semicolumns in parser rules, those missing semicolumns
are required to compile with the latest Bison.

Patch by Samuel Tardieu!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57289 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd parentheses to avoid warnings in GCC 4.4.0,
Chris Lattner [Wed, 8 Oct 2008 06:42:28 +0000 (06:42 +0000)]
Add parentheses to avoid warnings in GCC 4.4.0,
patch by Samuel Tardieu!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57288 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typo
Chris Lattner [Wed, 8 Oct 2008 06:26:11 +0000 (06:26 +0000)]
fix typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57287 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix the case where an instruction is not properly marked as using all registers that...
Owen Anderson [Wed, 8 Oct 2008 04:30:51 +0000 (04:30 +0000)]
Fix the case where an instruction is not properly marked as using all registers that alias its inputs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57286 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemove -disable-fast-isel. Use cl::boolOrDefault with -fast-isel
Dan Gohman [Tue, 7 Oct 2008 23:00:56 +0000 (23:00 +0000)]
Remove -disable-fast-isel. Use cl::boolOrDefault with -fast-isel
instead.

So now: -fast-isel or -fast-isel=true enable fast-isel, and
-fast-isel=false disables it. Fast-isel is also on by default
with -fast, and off by default otherwise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57270 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix disagreement about where the attributes are
Eric Christopher [Tue, 7 Oct 2008 22:33:44 +0000 (22:33 +0000)]
Fix disagreement about where the attributes are
~0 != ~0U.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57268 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix configure issue where configure
Tanya Lattner [Tue, 7 Oct 2008 22:21:03 +0000 (22:21 +0000)]
Fix configure issue where configure
turned "obj-c++" into "obj" in the langs line.
Update configure script.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57267 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd MBB successors and physreg Uses in the same order that
Dan Gohman [Tue, 7 Oct 2008 22:10:33 +0000 (22:10 +0000)]
Add MBB successors and physreg Uses in the same order that
SDISel typically adds them in. This makes it a little easier
to compare FastISel output with SDISel output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57266 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAvoid emitting redundant materializations of integer constants
Dan Gohman [Tue, 7 Oct 2008 22:03:27 +0000 (22:03 +0000)]
Avoid emitting redundant materializations of integer constants
for things like null pointers, which at this level aren't
different from regular integer constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57265 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoInstead of emitting an implicit use for the super-register of
Dan Gohman [Tue, 7 Oct 2008 21:50:36 +0000 (21:50 +0000)]
Instead of emitting an implicit use for the super-register of
X86::CL that was used, emit an EXTRACT_SUBREG from the CL
super-register to CL. This more precisely describes how the
CL register is being used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57264 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUnconditional branch instruction encoding fix. Needs to use ABI, not AXI, to get...
Jim Grosbach [Tue, 7 Oct 2008 21:08:09 +0000 (21:08 +0000)]
Unconditional branch instruction encoding fix. Needs to use ABI, not AXI, to get the proper opcode bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57262 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoneed ARM.h for ARMCC definition
Jim Grosbach [Tue, 7 Oct 2008 21:01:51 +0000 (21:01 +0000)]
need ARM.h for ARMCC definition

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57261 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a testcase for i256 add. i256 isn't fully supported in
Dan Gohman [Tue, 7 Oct 2008 20:39:12 +0000 (20:39 +0000)]
Add a testcase for i256 add. i256 isn't fully supported in
codegen right now, but add and subtract work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57260 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd an option to enable StrongPHIElimination, for ease of testing.
Owen Anderson [Tue, 7 Oct 2008 20:22:28 +0000 (20:22 +0000)]
Add an option to enable StrongPHIElimination, for ease of testing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57259 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoEncode the conditional execution predicate when JITing.
Jim Grosbach [Tue, 7 Oct 2008 19:05:35 +0000 (19:05 +0000)]
Encode the conditional execution predicate when JITing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57258 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoModel hardwired inputs & outputs of x86 8-bit divides correctly.
Dale Johannesen [Tue, 7 Oct 2008 18:54:28 +0000 (18:54 +0000)]
Model hardwired inputs & outputs of x86 8-bit divides correctly.
Fixes local RA miscompilation of gcc.c-torture/execute/20020904-1.c -O0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57257 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse Dan's supperior check
Andrew Lenharth [Tue, 7 Oct 2008 18:27:23 +0000 (18:27 +0000)]
Use Dan's supperior check

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57255 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCorrectly set attributes when removing args during cloning. Fixes PR2765
Andrew Lenharth [Tue, 7 Oct 2008 18:08:38 +0000 (18:08 +0000)]
Correctly set attributes when removing args during cloning.  Fixes PR2765

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57254 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImprove function definition, call and invoke instruction docs.
Devang Patel [Tue, 7 Oct 2008 17:48:33 +0000 (17:48 +0000)]
Improve function definition, call and invoke instruction docs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57253 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoClarify naming and correct conditional so that CMP and CMN instructions get the Rn...
Jim Grosbach [Tue, 7 Oct 2008 17:42:09 +0000 (17:42 +0000)]
Clarify naming and correct conditional so that CMP and CMN instructions get the Rn operand encoded properly

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57252 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix Opcode values of CMP and CMN
Jim Grosbach [Tue, 7 Oct 2008 17:40:46 +0000 (17:40 +0000)]
Fix Opcode values of CMP and CMN

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57251 91177308-0d34-0410-b5e6-96231b3b80d8

16 years ago128 mul test, xfailed
Andrew Lenharth [Tue, 7 Oct 2008 17:13:32 +0000 (17:13 +0000)]
128 mul test, xfailed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57250 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoNo need for |=
Andrew Lenharth [Tue, 7 Oct 2008 17:11:29 +0000 (17:11 +0000)]
No need for |=

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57249 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse ADDC if it is valid at any smaller size. Do it right this time
Andrew Lenharth [Tue, 7 Oct 2008 17:09:16 +0000 (17:09 +0000)]
Use ADDC if it is valid at any smaller size.  Do it right this time

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57248 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse ADDC if it is valid at any smaller size. fixes test/Codegen/Generic/i128-addsub...
Andrew Lenharth [Tue, 7 Oct 2008 17:03:15 +0000 (17:03 +0000)]
Use ADDC if it is valid at any smaller size.  fixes test/Codegen/Generic/i128-addsub.ll on x86

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57247 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCertain patterns involving the "movss" instruction were marked as requiring SSE2...
Anders Carlsson [Tue, 7 Oct 2008 16:14:11 +0000 (16:14 +0000)]
Certain patterns involving the "movss" instruction were marked as requiring SSE2, when in reality movss is an SSE1 instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57246 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd support for running the test suite with valgrind. to run it just type 'make VG...
Nuno Lopes [Tue, 7 Oct 2008 14:48:14 +0000 (14:48 +0000)]
add support for running the test suite with valgrind. to run it just type 'make VG=1', as in clang
beware of the 42000 leaks reported by valgrind in the Constant.cpp + Type.cpp files. it needs fixing IMHO

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57245 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoExpand arith on machines without carry flags
Andrew Lenharth [Tue, 7 Oct 2008 14:15:42 +0000 (14:15 +0000)]
Expand arith on machines without carry flags

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57243 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd two forgotten </i>'s.
Matthijs Kooijman [Tue, 7 Oct 2008 10:03:45 +0000 (10:03 +0000)]
Add two forgotten </i>'s.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57239 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix filetype suffix
Gabor Greif [Tue, 7 Oct 2008 06:41:02 +0000 (06:41 +0000)]
fix filetype suffix

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57237 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdvance version to 2.5
Tanya Lattner [Tue, 7 Oct 2008 04:35:08 +0000 (04:35 +0000)]
Advance version to 2.5

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57233 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agono need to write the output to the disk
Chris Lattner [Tue, 7 Oct 2008 04:06:55 +0000 (04:06 +0000)]
no need to write the output to the disk

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57232 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd test case for ADDC ADDE expansion
Andrew Lenharth [Tue, 7 Oct 2008 02:30:13 +0000 (02:30 +0000)]
Add test case for ADDC ADDE expansion

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57228 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoNote that ADDC and company don't actually expand yet (missing in legalize
Andrew Lenharth [Tue, 7 Oct 2008 02:10:26 +0000 (02:10 +0000)]
Note that ADDC and company don't actually expand yet (missing in legalize

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57226 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMark negative-zero-to-int conversion as Inexact,
Dale Johannesen [Tue, 7 Oct 2008 00:40:01 +0000 (00:40 +0000)]
Mark negative-zero-to-int conversion as Inexact,
since -0.0 can't be represented as an int.
This prevents llvm from reducing -0.0 to a
load-and-convert of int 0.  Fixes
ieee.exp/mzero[2356].c in gcc testsuite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57224 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCorrectly handle calls with no return values. This fixes
Dan Gohman [Tue, 7 Oct 2008 00:12:37 +0000 (00:12 +0000)]
Correctly handle calls with no return values. This fixes
2006-01-23-UnionInit on x86-64 when inlining is not enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57223 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix typo, fix PR 2865.
Devang Patel [Mon, 6 Oct 2008 23:22:54 +0000 (23:22 +0000)]
Fix typo, fix PR 2865.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57221 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoBe more precise about which conversions of NaNs
Dale Johannesen [Mon, 6 Oct 2008 22:59:10 +0000 (22:59 +0000)]
Be more precise about which conversions of NaNs
are Inexact.  (These are not Inexact as defined
by IEEE754, but that seems like a reasonable way
to abstract what happens:  information is lost.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57218 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoSet UNIVERSAL_ARCH value.
Devang Patel [Mon, 6 Oct 2008 21:24:48 +0000 (21:24 +0000)]
Set UNIVERSAL_ARCH value.
Fixes build failure when target is i386.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57211 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix PR2850 and PR2863. Only generate movddup for 128-bit SSE vector shuffles.
Evan Cheng [Mon, 6 Oct 2008 21:13:08 +0000 (21:13 +0000)]
Fix PR2850 and PR2863. Only generate movddup for 128-bit SSE vector shuffles.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57210 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoTemporarily revert functionality change from my previous patch;
Dale Johannesen [Mon, 6 Oct 2008 20:43:48 +0000 (20:43 +0000)]
Temporarily revert functionality change from my previous patch;
it is too aggressive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57203 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemove interfaces implemented by dead pass from the list of available passes.
Devang Patel [Mon, 6 Oct 2008 20:36:36 +0000 (20:36 +0000)]
Remove interfaces implemented by dead pass from the list of available passes.
Patch By Matthijs Kooijman.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57202 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoCosmetic.
Evan Cheng [Mon, 6 Oct 2008 20:33:02 +0000 (20:33 +0000)]
Cosmetic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57200 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUpdate function attributes docs.
Devang Patel [Mon, 6 Oct 2008 18:50:38 +0000 (18:50 +0000)]
Update function attributes docs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57197 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoThis is an objective-c test, not an objective-c++ one.
Evan Cheng [Mon, 6 Oct 2008 18:42:48 +0000 (18:42 +0000)]
This is an objective-c test, not an objective-c++ one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57193 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMark shortening NaN conversions as Inexact. PR 2856.
Dale Johannesen [Mon, 6 Oct 2008 18:22:29 +0000 (18:22 +0000)]
Mark shortening NaN conversions as Inexact.  PR 2856.
Improve description of unsupported formats.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57185 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoIt is possible that all functions in one module are not being
Devang Patel [Mon, 6 Oct 2008 18:03:39 +0000 (18:03 +0000)]
It is possible that all functions in one module are not being
optimized for size. Set OptForSize for each function separately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57182 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoDon't dereference the end() iterator. Thanks to
Dan Gohman [Mon, 6 Oct 2008 18:00:07 +0000 (18:00 +0000)]
Don't dereference the end() iterator. Thanks to
ENABLE_EXPENSIVE_CHECKS for finding this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57181 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemove unncessary isDeclaration() checks.
Devang Patel [Mon, 6 Oct 2008 17:30:07 +0000 (17:30 +0000)]
Remove unncessary isDeclaration() checks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57179 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAllow scalarrepl to treat an all-zero GEP just as bitcast.
Matthijs Kooijman [Mon, 6 Oct 2008 16:23:31 +0000 (16:23 +0000)]
Allow scalarrepl to treat an all-zero GEP just as bitcast.

This includes not marking a GEP involving a vector as unsafe, but only when it
has all zero indices. This allows scalarrepl to work in a few more cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57177 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoActually run Obj-C++ tests if llvm-gcc supports.
Duncan Sands [Mon, 6 Oct 2008 10:31:21 +0000 (10:31 +0000)]
Actually run Obj-C++ tests if llvm-gcc supports.
Before there were two problems: (1) configure
turned "obj-c++" into "obj" in the langs line;
(2) the dejagnu library called it objc++ not
obj-c++.
Now the problem is that some of these tests don't
pass!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57167 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoClarify the relationship between byval and readonly/
Duncan Sands [Mon, 6 Oct 2008 08:14:18 +0000 (08:14 +0000)]
Clarify the relationship between byval and readonly/
readnone.  Make clearer that readnone functions do not
dereference pointer arguments.  Do not use the highly
ambiguous "side-effects" in the readonly description
(since such functions can have control flow side-effects,
such as throwing an exception, or looping for ever).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57166 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoreorder #include order, patch by Kenneth Boyd!
Chris Lattner [Mon, 6 Oct 2008 03:54:25 +0000 (03:54 +0000)]
reorder #include order, patch by Kenneth Boyd!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57148 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd #include to get alloca, patch by Kenneth Boyd!
Chris Lattner [Mon, 6 Oct 2008 03:53:16 +0000 (03:53 +0000)]
Add #include to get alloca, patch by Kenneth Boyd!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57147 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix shift overflow bug that would occur when a field was a full 32-bits
Chris Lattner [Sun, 5 Oct 2008 18:31:58 +0000 (18:31 +0000)]
Fix shift overflow bug that would occur when a field was a full 32-bits
in tblgen.  This is PR2827, thanks to Waldemar Knorr for tracking this
down.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57124 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix an incorrect and extremely confusing error message
Chris Lattner [Sun, 5 Oct 2008 18:24:03 +0000 (18:24 +0000)]
fix an incorrect and extremely confusing error message

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57123 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomake the autoupgrade code for ret attributes dramatically simpler
Chris Lattner [Sun, 5 Oct 2008 18:22:09 +0000 (18:22 +0000)]
make the autoupgrade code for ret attributes dramatically simpler
and actually work.  We can now read the llvm 2.3 bc file from PR2849

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57122 91177308-0d34-0410-b5e6-96231b3b80d8