oota-llvm.git
17 years agoRegenerate.
Reid Spencer [Sun, 3 Dec 2006 06:59:29 +0000 (06:59 +0000)]
Regenerate.

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

17 years agoShorten the FCmp and ICmp mnemonics to 3 letters. Make the parser
Reid Spencer [Sun, 3 Dec 2006 06:58:07 +0000 (06:58 +0000)]
Shorten the FCmp and ICmp mnemonics to 3 letters. Make the parser
disambiguate them.

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

17 years agoShorten the FCmp predicate mnemonics.
Reid Spencer [Sun, 3 Dec 2006 06:35:48 +0000 (06:35 +0000)]
Shorten the FCmp predicate mnemonics.

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

17 years agoImplement reading and writing of the ICmp and FCmp instructions.
Reid Spencer [Sun, 3 Dec 2006 06:28:54 +0000 (06:28 +0000)]
Implement reading and writing of the ICmp and FCmp instructions.

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

17 years agoAllow the ICmp and FCmp instructions to be written by the AsmWriter
Reid Spencer [Sun, 3 Dec 2006 06:27:29 +0000 (06:27 +0000)]
Allow the ICmp and FCmp instructions to be written by the AsmWriter

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

17 years agoImplement creation of ICmp and FCmp constant expressions.
Reid Spencer [Sun, 3 Dec 2006 05:48:19 +0000 (05:48 +0000)]
Implement creation of ICmp and FCmp constant expressions.

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

17 years agoRemove backwards compatibility goop. This is now handled by llvm-upgrade.
Reid Spencer [Sun, 3 Dec 2006 05:47:10 +0000 (05:47 +0000)]
Remove backwards compatibility goop. This is now handled by llvm-upgrade.

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

17 years agoRegenerate.
Reid Spencer [Sun, 3 Dec 2006 05:46:11 +0000 (05:46 +0000)]
Regenerate.

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

17 years agoRemove backwards compatibility goop. Now implemented in llvm-upgrade.
Reid Spencer [Sun, 3 Dec 2006 05:45:44 +0000 (05:45 +0000)]
Remove backwards compatibility goop. Now implemented in llvm-upgrade.

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

17 years agoUpgrade to version 7 bytecode format.
Reid Spencer [Sun, 3 Dec 2006 04:40:09 +0000 (04:40 +0000)]
Upgrade to version 7 bytecode format.

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

17 years agoRegenerate.
Reid Spencer [Sun, 3 Dec 2006 03:16:48 +0000 (03:16 +0000)]
Regenerate.

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

17 years agoAdd a needed #include.
Reid Spencer [Sun, 3 Dec 2006 03:15:23 +0000 (03:15 +0000)]
Add a needed #include.

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

17 years agoRegenerate.
Reid Spencer [Sat, 2 Dec 2006 22:14:11 +0000 (22:14 +0000)]
Regenerate.

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

17 years agoImplement upgrade of setcc instruction to icmp/fcmp, but don't enable it
Reid Spencer [Sat, 2 Dec 2006 22:09:27 +0000 (22:09 +0000)]
Implement upgrade of setcc instruction to icmp/fcmp, but don't enable it
yet.

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

17 years agoMake sure this file gets upgraded with llvm-upgrade
Reid Spencer [Sat, 2 Dec 2006 20:42:32 +0000 (20:42 +0000)]
Make sure this file gets upgraded with llvm-upgrade

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

17 years agoUpgrade intrinsic function calls manually.
Reid Spencer [Sat, 2 Dec 2006 20:41:53 +0000 (20:41 +0000)]
Upgrade intrinsic function calls manually.

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

17 years agoThese files need llvm-upgrade.
Reid Spencer [Sat, 2 Dec 2006 20:40:30 +0000 (20:40 +0000)]
These files need llvm-upgrade.

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

17 years agoRearrange code so that llvm-upgrade doesn't break the optimization this
Reid Spencer [Sat, 2 Dec 2006 20:39:25 +0000 (20:39 +0000)]
Rearrange code so that llvm-upgrade doesn't break the optimization this
test is trying to verify.

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

17 years agoUpgrade intrinsic function calls
Reid Spencer [Sat, 2 Dec 2006 20:38:37 +0000 (20:38 +0000)]
Upgrade intrinsic function calls

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

17 years agoRun llvm-upgrade on this test and/or upgrade intrinsic function calls.
Reid Spencer [Sat, 2 Dec 2006 20:38:10 +0000 (20:38 +0000)]
Run llvm-upgrade on this test and/or upgrade intrinsic function calls.

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

17 years agoRemove tests for checking bytecode upgrade. Bytecode upgrade is being
Reid Spencer [Sat, 2 Dec 2006 20:35:50 +0000 (20:35 +0000)]
Remove tests for checking bytecode upgrade. Bytecode upgrade is being
replaced in 2.0 with assembly upgrade via the llvm-upgrade tool.

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

17 years agoUpgrade old intrinsic function calls manually.
Reid Spencer [Sat, 2 Dec 2006 20:34:57 +0000 (20:34 +0000)]
Upgrade old intrinsic function calls manually.

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

17 years agoUse llvm-upgrade these tests as they all use old assembly.
Reid Spencer [Sat, 2 Dec 2006 20:34:08 +0000 (20:34 +0000)]
Use llvm-upgrade these tests as they all use old assembly.

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

17 years agoRemove old intrinsic declarations and usage.
Reid Spencer [Sat, 2 Dec 2006 20:30:20 +0000 (20:30 +0000)]
Remove old intrinsic declarations and usage.

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

17 years agoRegenerate.
Reid Spencer [Sat, 2 Dec 2006 20:21:22 +0000 (20:21 +0000)]
Regenerate.

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

17 years agoSupport several new upgrades:
Reid Spencer [Sat, 2 Dec 2006 20:19:56 +0000 (20:19 +0000)]
Support several new upgrades:
  div -> fdiv/udiv/sdiv
  rem -> frem/urem/srem
  except -> unwind
  uninitialized -> external
as well as tracking the element type of pointers, packed, and array.

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

17 years agoRemove a redundant RUN: line.
Reid Spencer [Sat, 2 Dec 2006 17:49:38 +0000 (17:49 +0000)]
Remove a redundant RUN: line.

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

17 years agoAdd llvm-upgrade documentation.
Reid Spencer [Sat, 2 Dec 2006 16:36:48 +0000 (16:36 +0000)]
Add llvm-upgrade documentation.

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

17 years agoDocument the llvm-upgrade tool.
Reid Spencer [Sat, 2 Dec 2006 16:35:42 +0000 (16:35 +0000)]
Document the llvm-upgrade tool.

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

17 years agoPrevent a GEP from getting upgraded to avoid resulting test failure.
Reid Spencer [Sat, 2 Dec 2006 16:25:20 +0000 (16:25 +0000)]
Prevent a GEP from getting upgraded to avoid resulting test failure.

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

17 years agoRegenerate.
Reid Spencer [Sat, 2 Dec 2006 16:19:52 +0000 (16:19 +0000)]
Regenerate.

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

17 years agoImplement the GEP upgrade for non-constant unsigned indices
Reid Spencer [Sat, 2 Dec 2006 16:19:28 +0000 (16:19 +0000)]
Implement the GEP upgrade for non-constant unsigned indices

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

17 years agoKeep lists of values so they can be examined.
Reid Spencer [Sat, 2 Dec 2006 15:16:01 +0000 (15:16 +0000)]
Keep lists of values so they can be examined.

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

17 years agoUpdate this test to use llvm-update.
Reid Spencer [Sat, 2 Dec 2006 05:02:46 +0000 (05:02 +0000)]
Update this test to use llvm-update.

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

17 years agoBuild llvm-update now.
Reid Spencer [Sat, 2 Dec 2006 04:46:36 +0000 (04:46 +0000)]
Build llvm-update now.

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

17 years agoUse the llvm-upgrade program to upgrade llvm assembly.
Reid Spencer [Sat, 2 Dec 2006 04:23:10 +0000 (04:23 +0000)]
Use the llvm-upgrade program to upgrade llvm assembly.

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

17 years agoAdd support for global types and type resolution. Fix several minor
Reid Spencer [Sat, 2 Dec 2006 04:11:07 +0000 (04:11 +0000)]
Add support for global types and type resolution. Fix several minor
formatting and spacing bugs. This is sufficient for llvm-upgrade to
correctly upgrade all of llvm/test.

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

17 years agoUnbreak VC++ build.
Jeff Cohen [Sat, 2 Dec 2006 02:22:01 +0000 (02:22 +0000)]
Unbreak VC++ build.

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

17 years agodisable transformations that are invalid for fp vectors. This fixes
Chris Lattner [Sat, 2 Dec 2006 00:13:08 +0000 (00:13 +0000)]
disable transformations that are invalid  for fp vectors.  This fixes
Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll

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

17 years agonew testcase
Chris Lattner [Sat, 2 Dec 2006 00:12:32 +0000 (00:12 +0000)]
new testcase

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

17 years agoSwitch analysis groups to be unregistered when llvm_shutdown is called.
Chris Lattner [Fri, 1 Dec 2006 23:46:50 +0000 (23:46 +0000)]
Switch analysis groups to be unregistered when llvm_shutdown is called.

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

17 years agoHandle upgrade of fp -> ptr cast with fp -> int -> ptr
Reid Spencer [Fri, 1 Dec 2006 23:40:53 +0000 (23:40 +0000)]
Handle upgrade of fp -> ptr cast with fp -> int -> ptr

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

17 years agoStart moving pass registration over to using the ManagedStatic mechanism.
Chris Lattner [Fri, 1 Dec 2006 23:27:45 +0000 (23:27 +0000)]
Start moving pass registration over to using the ManagedStatic mechanism.
This fixes issues where passes get unregistered before llvm_shutdown is
called, and is generally cleaner and simpler.  Analysis groups up next.

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

17 years agoMatch TargetInstrInfo changes.
Evan Cheng [Fri, 1 Dec 2006 22:57:41 +0000 (22:57 +0000)]
Match TargetInstrInfo changes.

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

17 years agoDon't convert {} into []!
Reid Spencer [Fri, 1 Dec 2006 22:42:01 +0000 (22:42 +0000)]
Don't convert {} into []!

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

17 years agopass cfgonly up the ctor instead of calling an explicit method.
Chris Lattner [Fri, 1 Dec 2006 22:36:43 +0000 (22:36 +0000)]
pass cfgonly up the ctor instead of calling an explicit method.

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

17 years agoAllow the new cast instructions.
Reid Spencer [Fri, 1 Dec 2006 22:34:43 +0000 (22:34 +0000)]
Allow the new cast instructions.

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

17 years agoUpgrade shr to ashr and lshr
Reid Spencer [Fri, 1 Dec 2006 22:26:37 +0000 (22:26 +0000)]
Upgrade shr to ashr and lshr

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

17 years agomove 'cfgonly' pass tracking into PassInfo, instead of handling it with
Chris Lattner [Fri, 1 Dec 2006 22:21:11 +0000 (22:21 +0000)]
move 'cfgonly' pass tracking into PassInfo, instead of handling it with
yet-another global data structure.

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

17 years agoremove 'target constructor' support.
Chris Lattner [Fri, 1 Dec 2006 22:00:50 +0000 (22:00 +0000)]
remove 'target constructor' support.

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

17 years agotarget constructors are never used
Chris Lattner [Fri, 1 Dec 2006 21:59:37 +0000 (21:59 +0000)]
target constructors are never used

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

17 years agoMatch TargetInstrInfo changes.
Evan Cheng [Fri, 1 Dec 2006 21:52:58 +0000 (21:52 +0000)]
Match TargetInstrInfo changes.

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

17 years agoconvertToThreeAddress() is now responsible for updating live info as well as insertin...
Evan Cheng [Fri, 1 Dec 2006 21:52:41 +0000 (21:52 +0000)]
convertToThreeAddress() is now responsible for updating live info as well as inserting the new MI's.

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

17 years agoDon't treat numeric (untyped) constants as a ConstInfo, just pass the
Reid Spencer [Fri, 1 Dec 2006 21:52:30 +0000 (21:52 +0000)]
Don't treat numeric (untyped) constants as a ConstInfo, just pass the
string and let ConstVal add the type.

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

17 years agoTypo
Evan Cheng [Fri, 1 Dec 2006 21:50:17 +0000 (21:50 +0000)]
Typo

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

17 years ago- Add getOperandConstraint() to TargetInstrDescriptor.
Evan Cheng [Fri, 1 Dec 2006 21:46:55 +0000 (21:46 +0000)]
- Add getOperandConstraint() to TargetInstrDescriptor.
- convertToThreeAddress() change to allow single two-address MI to be converted
  into one or more 3-address MIs.

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

17 years agofix incorrectly translated testcase
Chris Lattner [Fri, 1 Dec 2006 21:38:02 +0000 (21:38 +0000)]
fix incorrectly translated testcase

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

17 years agoFirst version of llvm-upgrade that can correctly upgrade all of
Reid Spencer [Fri, 1 Dec 2006 21:10:07 +0000 (21:10 +0000)]
First version of llvm-upgrade that can correctly upgrade all of
test/Feature

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

17 years agoAdd weak reference directive.
Evan Cheng [Fri, 1 Dec 2006 20:47:11 +0000 (20:47 +0000)]
Add weak reference directive.

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

17 years agovalgrind clean version of llvm-upgrade
Reid Spencer [Fri, 1 Dec 2006 20:36:40 +0000 (20:36 +0000)]
valgrind clean version of llvm-upgrade

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

17 years agoFirst version of llvm-upgrade that can correctly upgrade a large test
Reid Spencer [Fri, 1 Dec 2006 20:26:20 +0000 (20:26 +0000)]
First version of llvm-upgrade that can correctly upgrade a large test
case.

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

17 years agoRemove dead methods
Chris Lattner [Fri, 1 Dec 2006 20:14:47 +0000 (20:14 +0000)]
Remove dead methods

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

17 years agoThese should be rewritten to fold without using the 'Rules' mechanism, but
Chris Lattner [Fri, 1 Dec 2006 19:50:54 +0000 (19:50 +0000)]
These should be rewritten to fold without using the 'Rules' mechanism, but
until this happens at least make sext from bool and sitofp from bool do the
right thing.

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

17 years agotest1 is miscompiled
Chris Lattner [Fri, 1 Dec 2006 19:50:04 +0000 (19:50 +0000)]
test1 is miscompiled

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

17 years agowrong spot
Jim Laskey [Fri, 1 Dec 2006 19:39:32 +0000 (19:39 +0000)]
wrong spot

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

17 years agoTest for float varargs.
Jim Laskey [Fri, 1 Dec 2006 19:29:20 +0000 (19:29 +0000)]
Test for float varargs.

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

17 years agothis logic is broken for trunc to bool, replace the folding logic for trunc
Chris Lattner [Fri, 1 Dec 2006 19:22:41 +0000 (19:22 +0000)]
this logic is broken for trunc to bool, replace the folding logic for trunc
completely, as it is trivial.  We should probably do this for the rest of the
cast operations.  This fixes ConstProp/2006-12-01-TruncBoolBug.ll.

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

17 years agoadd a new ConstantIntegral::get method. Simplify the implementation of
Chris Lattner [Fri, 1 Dec 2006 19:20:02 +0000 (19:20 +0000)]
add a new ConstantIntegral::get method.  Simplify the implementation of
ConstantInt::get

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

17 years agonew 'cast' miscompilation, reduced from perlbmk by Evan
Chris Lattner [Fri, 1 Dec 2006 19:02:56 +0000 (19:02 +0000)]
new 'cast' miscompilation, reduced from perlbmk by Evan

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

17 years agoenable this now that codegen support is in place
Chris Lattner [Fri, 1 Dec 2006 18:04:08 +0000 (18:04 +0000)]
enable this now that codegen support is in place

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

17 years agoCopy and paste error. An initialized global cannot be a weak reference.
Evan Cheng [Fri, 1 Dec 2006 17:39:22 +0000 (17:39 +0000)]
Copy and paste error. An initialized global cannot be a weak reference.

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

17 years ago1. In ppc64 mode we need only use one GPR.
Jim Laskey [Fri, 1 Dec 2006 16:30:47 +0000 (16:30 +0000)]
1. In ppc64 mode we need only use one GPR.
2. Float values need to be promoted to double when they are vararg.

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

17 years agoExternalWeak case in wrong location.
Jim Laskey [Fri, 1 Dec 2006 14:37:39 +0000 (14:37 +0000)]
ExternalWeak case in wrong location.

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

17 years agoThis test is meant for X86 CPU which does not support SSE2.
Evan Cheng [Fri, 1 Dec 2006 10:17:36 +0000 (10:17 +0000)]
This test is meant for X86 CPU which does not support SSE2.

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

17 years agoFix 2005-05-08-FPStackifierPHI.ll failure.
Evan Cheng [Fri, 1 Dec 2006 10:11:51 +0000 (10:11 +0000)]
Fix 2005-05-08-FPStackifierPHI.ll failure.

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

17 years agoAdd a extern weak test case.
Evan Cheng [Fri, 1 Dec 2006 09:18:20 +0000 (09:18 +0000)]
Add a extern weak test case.

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

17 years agoA initialized global variable cannot be extern weak. However, if a global value's...
Evan Cheng [Fri, 1 Dec 2006 09:13:26 +0000 (09:13 +0000)]
A initialized global variable cannot be extern weak. However, if a global value's initializer is itself a external weak symbol, emit the weak reference.

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

17 years agoDarwin PPC external weak linkage support.
Evan Cheng [Fri, 1 Dec 2006 07:56:37 +0000 (07:56 +0000)]
Darwin PPC external weak linkage support.

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

17 years agoMinor code clean up.
Evan Cheng [Fri, 1 Dec 2006 07:38:23 +0000 (07:38 +0000)]
Minor code clean up.

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

17 years agoFix indentation.
Evan Cheng [Fri, 1 Dec 2006 07:17:00 +0000 (07:17 +0000)]
Fix indentation.

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

17 years agoDarwin X86 external weak linkage support.
Evan Cheng [Fri, 1 Dec 2006 07:15:24 +0000 (07:15 +0000)]
Darwin X86 external weak linkage support.

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

17 years agonew testcase to verify external weak continues to work
Chris Lattner [Fri, 1 Dec 2006 07:14:26 +0000 (07:14 +0000)]
new testcase to verify external weak continues to work

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

17 years agonew testcase for PR1027
Chris Lattner [Fri, 1 Dec 2006 06:34:56 +0000 (06:34 +0000)]
new testcase for PR1027

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

17 years agoFix a typo introduced by the cast patch that horribly broke a lot of vector
Chris Lattner [Fri, 1 Dec 2006 05:55:25 +0000 (05:55 +0000)]
Fix a typo introduced by the cast patch that horribly broke a lot of vector
code.  Testcase here: Transforms/ConstProp/2006-11-30-vector-cast.ll

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

17 years agonew testcase
Chris Lattner [Fri, 1 Dec 2006 05:54:48 +0000 (05:54 +0000)]
new testcase

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

17 years agoDon't fold "ptrtoint GV to bool" since this should be doing a truncate not
Reid Spencer [Fri, 1 Dec 2006 03:56:30 +0000 (03:56 +0000)]
Don't fold "ptrtoint GV to bool" since this should be doing a truncate not
a comparison against zero. Instead fold setne(GV,null) and seteq(GV,null)
to ConstantBool::True or ConstantBool::False, respectively.

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

17 years agoDefine the HAVE_PTHREAD symbol.
Reid Spencer [Fri, 1 Dec 2006 03:46:01 +0000 (03:46 +0000)]
Define the HAVE_PTHREAD symbol.

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

17 years agoThe InstCombine hack has been removed, no need to XFAIL this any more.
Reid Spencer [Fri, 1 Dec 2006 01:50:45 +0000 (01:50 +0000)]
The InstCombine hack has been removed, no need to XFAIL this any more.

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

17 years agoFix the CodeGen/PowerPC/vec_constants.ll regression.
Chris Lattner [Fri, 1 Dec 2006 01:45:39 +0000 (01:45 +0000)]
Fix the CodeGen/PowerPC/vec_constants.ll regression.

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

17 years agoRemove extra header.
Nick Lewycky [Fri, 1 Dec 2006 01:05:14 +0000 (01:05 +0000)]
Remove extra header.

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

17 years agoFix opt -o option. Don't pass a pointer to an auto variable which is going
Nick Lewycky [Fri, 1 Dec 2006 00:43:14 +0000 (00:43 +0000)]
Fix opt -o option. Don't pass a pointer to an auto variable which is going
away before it's needed, and don't try to delete that pointer!

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

17 years agoFor PR1019:
Reid Spencer [Fri, 1 Dec 2006 00:37:14 +0000 (00:37 +0000)]
For PR1019:
Add HAVE_PTHREAD to makefiles with support from configure and use it to
determine whether to build examples/ParallelJIT.
Patch by Anton Korobeynikov.

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

17 years agoRegenerate.
Reid Spencer [Fri, 1 Dec 2006 00:33:46 +0000 (00:33 +0000)]
Regenerate.

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

17 years agoIntroducing external weak linkage. Darwin codegen should be added later.
Anton Korobeynikov [Fri, 1 Dec 2006 00:25:12 +0000 (00:25 +0000)]
Introducing external weak linkage. Darwin codegen should be added later.

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

17 years agoRemove 4 FIXMEs to hack around cast-to-bool problems which no longer exist.
Reid Spencer [Thu, 30 Nov 2006 23:13:36 +0000 (23:13 +0000)]
Remove 4 FIXMEs to hack around cast-to-bool problems which no longer exist.

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

17 years agoFactor out GVRequiresExtraLoad() from .h to .cpp
Anton Korobeynikov [Thu, 30 Nov 2006 22:42:55 +0000 (22:42 +0000)]
Factor out GVRequiresExtraLoad() from .h to .cpp

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

17 years agoAdd X86-64 load / store codegen tests.
Evan Cheng [Thu, 30 Nov 2006 22:07:00 +0000 (22:07 +0000)]
Add X86-64 load / store codegen tests.

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

17 years ago- Use a different wrapper node for RIP-relative GV, etc.
Evan Cheng [Thu, 30 Nov 2006 21:55:46 +0000 (21:55 +0000)]
- Use a different wrapper node for RIP-relative GV, etc.
- Proper support for both small static and PIC modes under X86-64
- Some (non-optimal) support for medium modes.

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

17 years agobetter check for version
Jim Laskey [Thu, 30 Nov 2006 18:29:23 +0000 (18:29 +0000)]
better check for version

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

17 years agomake it clear that this is always a zext
Chris Lattner [Thu, 30 Nov 2006 17:35:08 +0000 (17:35 +0000)]
make it clear that this is always a zext

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