Chris Lattner [Sun, 28 Nov 2004 00:39:58 +0000 (00:39 +0000)]
New testcase for PR360
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18296
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Nov 2004 00:09:38 +0000 (00:09 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18295
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 28 Nov 2004 00:06:07 +0000 (00:06 +0000)]
New testcase for PR244
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18294
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 23:27:26 +0000 (23:27 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18293
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 23:24:23 +0000 (23:24 +0000)]
New testcase for PR397
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18292
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 22:47:08 +0000 (22:47 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18291
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 22:43:51 +0000 (22:43 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18290
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 27 Nov 2004 22:01:43 +0000 (22:01 +0000)]
Remove a dead check at the end of the configure script that was a left over
from the bzip2 support. This dead check produced the error:
test: -ne: unary operator expected
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18289
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 27 Nov 2004 21:59:57 +0000 (21:59 +0000)]
Get the cache variable name right.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18288
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 21:33:28 +0000 (21:33 +0000)]
Move this to the QOI section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18287
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 21:29:43 +0000 (21:29 +0000)]
Mention dj
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18286
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 20:34:25 +0000 (20:34 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18285
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 20:31:59 +0000 (20:31 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18284
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 20:31:14 +0000 (20:31 +0000)]
Pass in llvmgxx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18283
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 19:50:58 +0000 (19:50 +0000)]
Add notes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18282
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 19:44:07 +0000 (19:44 +0000)]
New testcase for PR424
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18281
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 19:24:06 +0000 (19:24 +0000)]
Add some notes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18280
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 19:20:23 +0000 (19:20 +0000)]
Add bzip2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18279
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 19:19:44 +0000 (19:19 +0000)]
These have been removed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18278
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 19:18:35 +0000 (19:18 +0000)]
Remove zlib from the llvm tarball. This is only used (in theory by povray-31
which is part of llvm-test). If anyone is interested in adding it to llvm-test,
feel free to go for it.
This is part of PR417
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18277
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 19:18:05 +0000 (19:18 +0000)]
Remove zlib from the llvm tarball. This is only used (in theory by povray-31
which is part of llvm-test). If anyone is interested in adding it to llvm-test,
feel free to go for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18276
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 18:37:42 +0000 (18:37 +0000)]
When merging to alias sets, if they are both must alias, the result is not
a must alias set unless all of the pointers in the resultant set are must
aliased together.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18275
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 18:37:04 +0000 (18:37 +0000)]
Change interface to this method a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18274
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 17:55:46 +0000 (17:55 +0000)]
Implement Regression/Transforms/InstCombine/getelementptr_cast.ll, which
occurs many times in crafty
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18273
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 27 Nov 2004 17:55:20 +0000 (17:55 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18272
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 27 Nov 2004 06:44:10 +0000 (06:44 +0000)]
Don't depend on grep or sed to be portable at all. Just compare against
static test files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18271
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 27 Nov 2004 06:43:03 +0000 (06:43 +0000)]
Put the expected tables of contents of the test archives into separate
files so we don't have to process them at test time at all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18270
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 27 Nov 2004 06:27:30 +0000 (06:27 +0000)]
Use grep instead of sed because on Solaris sed doesn't copy null bytes and
it needs to in order for the bug in MacOSX archives to be tested correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18269
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 27 Nov 2004 06:00:36 +0000 (06:00 +0000)]
Accommodate the braindead Solaris "diff" that doesn't understand the -q
option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18268
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Sat, 27 Nov 2004 04:45:11 +0000 (04:45 +0000)]
Remove the ISel->AsmPrinter link via the TargetMachine that was put in
place to help bring up the PowerPC back end on Darwin. This code is no
longer serves any purpose now that the AsmPrinter does the right thing
all the time printing GlobalValues. --Cruft.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18267
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Nov 2004 21:36:25 +0000 (21:36 +0000)]
Add a new interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18266
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Nov 2004 21:20:09 +0000 (21:20 +0000)]
Provide size information when checking to see if we can LICM a load, this
allows us to hoist more loads in some cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18265
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Nov 2004 21:05:39 +0000 (21:05 +0000)]
When evaluating an AA, pass in size info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18264
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Nov 2004 20:25:17 +0000 (20:25 +0000)]
There is no reason to store <x,x>, just store <x>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18263
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Nov 2004 20:01:48 +0000 (20:01 +0000)]
The trick with globals actually works with allocas and malloc too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18262
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Nov 2004 19:20:01 +0000 (19:20 +0000)]
A store or load cannot alias a global if the accessed amount is larger then
the global.
This implements Regression/Analysis/BasicAA/global-size.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18261
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 26 Nov 2004 19:19:28 +0000 (19:19 +0000)]
new testcase basicaa should handle
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18260
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 22:43:58 +0000 (22:43 +0000)]
Indicate that PR427 won't be fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18259
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 22:38:30 +0000 (22:38 +0000)]
* Add features I implemented this release.
* Wrap long lines at 80 cols
* Indent lists so structure of document is a little more clear
* Make the page HTML 4.01 Strict compliant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18258
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 20:22:06 +0000 (20:22 +0000)]
Add LLVMbzip2 library, now required.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18255
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 20:21:53 +0000 (20:21 +0000)]
Remove HAVE_BZLIB and HAVE_BZIP2. We always have bzip2 now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18254
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 19:38:51 +0000 (19:38 +0000)]
Always pass -D_GNU_SOURCE to cc1plus
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18253
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 19:38:39 +0000 (19:38 +0000)]
Always pass -D_GNU_SOURCE to cc1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18252
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 19:38:28 +0000 (19:38 +0000)]
Add bzip2 subdirectory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18251
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 19:38:16 +0000 (19:38 +0000)]
Remove zlib support in favor of our own bzip2 library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18250
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 19:38:05 +0000 (19:38 +0000)]
Adjust to Compressor interface change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18249
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 19:37:42 +0000 (19:37 +0000)]
Restrict the interface to not allow algorithm selection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18248
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 17:13:17 +0000 (17:13 +0000)]
Add some instructions about ranlib'ing the CFE runtime libraries so that
they link faster. This should eventually be codified into the CFE's
makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18247
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 16:12:25 +0000 (16:12 +0000)]
Revise to LLVM makefile standards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18246
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 16:11:36 +0000 (16:11 +0000)]
Initial Version from bzip2 Release 1.0.2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18245
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 09:36:28 +0000 (09:36 +0000)]
Correct the configuration variable used to find the bin directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18244
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 09:32:08 +0000 (09:32 +0000)]
Implement dependent library linking. It is no longer required that -lstdc++
-lstdsup++ no -lc be passed on the command line to llvm linkers if the
progam being linked was compiled with the C/C++ Front End or Stacker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18243
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 09:29:44 +0000 (09:29 +0000)]
Remove blank comment lines for uniformity.
Make sure lines don't exceed 80 cols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18242
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 09:08:54 +0000 (09:08 +0000)]
Add a convenience target to build all three modes: Debug, Release, Profile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18241
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 07:28:19 +0000 (07:28 +0000)]
Gack. Actually use the correct variable name in setting the JIT support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18240
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Thu, 25 Nov 2004 07:09:01 +0000 (07:09 +0000)]
Enable optimization suggested by Chris Lattner to not emit reloc stubs for
static global variables whose addresses are taken. This allows us to
convert the following code for taking the address of a static function foo
addis r2, r30, ha16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")
lwz r3, lo16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")(r2)
which also includes linker stub code emitted at the end of the .s file not
shown here, and replace it with this:
addis r2, r30, ha16(l1__2E_foo_2-"L00001$pb")
la r3, lo16(l1__2E_foo_2-"L00001$pb")(r2)
which in addition to not needing linker help, also has no load instruction.
For those not up on PowerPC mnemonics, la is shorthand for add immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18239
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 06:33:10 +0000 (06:33 +0000)]
The PPC backend is basically stable, and has a JIT now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18238
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 06:31:42 +0000 (06:31 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18237
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 06:25:13 +0000 (06:25 +0000)]
New testcase for PR451
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18236
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 06:14:45 +0000 (06:14 +0000)]
Fix the build on non ppc machines
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18235
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 06:07:42 +0000 (06:07 +0000)]
PR256 fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18234
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 06:03:14 +0000 (06:03 +0000)]
Fix the lib/System/platform link by using proper cached variable name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18233
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 04:51:04 +0000 (04:51 +0000)]
For PR256:
* cache more values
* standardize cache value names
* organize configure script per autoconf recommendations (10 sections)
* Eliminate some redundancies and complexities in the script
* Provide better documentation in the script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18232
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 04:44:46 +0000 (04:44 +0000)]
Cache the value of this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18231
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 04:43:54 +0000 (04:43 +0000)]
Tidy up the indentation. Give the cache variable a proper name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18230
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 04:42:25 +0000 (04:42 +0000)]
Eliminate duplicate "checking" message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18229
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 04:14:54 +0000 (04:14 +0000)]
The JIT works enough
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18228
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 04:11:07 +0000 (04:11 +0000)]
Fix encoding of fsel, fixing olden/power, McCat/bisort and several others.
All of Olden passes now! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18227
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 03:53:44 +0000 (03:53 +0000)]
Fix encoding of fneg instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18226
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 03:40:20 +0000 (03:40 +0000)]
Fix encoding of swari, fixing several programs, including Olden/mst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18225
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 25 Nov 2004 03:33:03 +0000 (03:33 +0000)]
Make the check print something, give the cache var an llvm specific name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18224
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 25 Nov 2004 00:33:57 +0000 (00:33 +0000)]
There is not a 1-1 mappign between llvm blocks and PPC blocks, do not use
LLVM blocks as the keys for the branch rewriter. This fixes treeadd and
many other programs with the JIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18223
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 22:30:08 +0000 (22:30 +0000)]
* Rename existing relocations to be more specific
* Add relocations for refernces to non-lazy darwin stubs and implement
them correctly.
With this change, we can correctly references external globals, and now
all but two UnitTests and all but 1 Regression/C tests pass.
More importantly, bugpoint-jit will start giving us useful testcases,
instead of always telling us that references to external globals don't
work :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18222
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 24 Nov 2004 21:53:14 +0000 (21:53 +0000)]
Add the same optimization that we do loading from fixed alloca slots to
storing to fixed alloca slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18221
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 21:01:46 +0000 (21:01 +0000)]
Write CompilationCallback as an explicit assembly stub to avoid getting GCC's
prolog.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18220
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 18:00:02 +0000 (18:00 +0000)]
When rewriting the original call instruction, make sure to rewrite it to
call the right address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18213
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 17:42:55 +0000 (17:42 +0000)]
Force the intregs ptr into R2 and the FPregs ptr into R3. This fixes a really
obscure problem where we were doing:
lmw r3,0(r9)
which is undefined on PPC. Now we do:
lmw r3,0(r2)
by force, not relying on the GCC register allocator for luck :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18212
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 24 Nov 2004 06:13:42 +0000 (06:13 +0000)]
Implement and document prefix options with arbitrary values including an
= sign. This needed to support -DNAME=value options as pass-through in
llvmc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18203
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 24 Nov 2004 04:07:42 +0000 (04:07 +0000)]
Update list of failing benchmarks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18202
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 24 Nov 2004 04:07:33 +0000 (04:07 +0000)]
Fix bug in emitGEPOperation with large struct-member offsets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18201
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 03:52:02 +0000 (03:52 +0000)]
Fix a few more tests by encoding the extsb and other XForm11 instructions
correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18200
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 02:15:41 +0000 (02:15 +0000)]
Fix the encoding of ORi and other DForm4 instructions. This brings us to
36/42 SingleSource/UnitTests passing!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18199
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 02:03:44 +0000 (02:03 +0000)]
Loads are relocatable too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18198
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 02:00:06 +0000 (02:00 +0000)]
Calls do not need a MovPCtoLR instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18197
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 01:56:12 +0000 (01:56 +0000)]
Get constant pools working. This fixes even more programs, allowing us to
pass 24/42 in UnitTests (up from 20).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18196
91177308-0d34-0410-b5e6-
96231b3b80d8
Tanya Lattner [Wed, 24 Nov 2004 01:49:10 +0000 (01:49 +0000)]
Forced branches to be first to be scheduled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18195
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 01:35:12 +0000 (01:35 +0000)]
Rewrite branches more closely to correct. This makes more stuff pass, and
stops the infinite loops!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18194
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Nov 2004 01:15:19 +0000 (01:15 +0000)]
Branch instructions explicitly represent CRx in them. bEcause of this, encode
them explicitly as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18193
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Wed, 24 Nov 2004 00:16:37 +0000 (00:16 +0000)]
Fix encoding of bctrl, and remove some unused instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18192
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 24 Nov 2004 00:01:57 +0000 (00:01 +0000)]
Make sure additional C++ suffixes are recognized by llvmc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18191
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:48:45 +0000 (23:48 +0000)]
Add the configurable configuration files for llvmc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18190
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:47:58 +0000 (23:47 +0000)]
* Adjust the options to make them either accept multiple occurrences or be
optional so that compatibility with GCC is accomplished.
* Implement the -print-file-name option in an attempt to provide the same
functionality as GCC. Unfortunately, without loading the cpp or c config
files, this option won't help much.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18189
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:45:49 +0000 (23:45 +0000)]
* Don't pass empty arguments to ExecuteAndWait because it can cause the
sub-tool to start reading its standard input instead of the specified
input.
* Clean up ouput of path names on error.
* Extend GetPathForLinkageItem to always search the LibraryPaths and thus
make it suitable for an interface function (required by llvmc.cpp).
* Implement support for language-specific default library paths.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18188
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:40:06 +0000 (23:40 +0000)]
Configuration data now supports a vector of library paths.
Add the GetPathForLinkageItem method to the interface so full paths can
be generated for a given linkage item.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18187
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:38:46 +0000 (23:38 +0000)]
Add the c and cpp configuration files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18186
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:38:07 +0000 (23:38 +0000)]
Removed in favor of configurable (*.in) versions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18185
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:37:26 +0000 (23:37 +0000)]
Make various adjustments to parsing so that the separator character doesn't
terminate options or paths, so that SPACE tokens legally separate options
on a command line, and so that the lang.libs paths are parsed properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18184
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:35:50 +0000 (23:35 +0000)]
SPACE is a legitimate token now, to separate option words.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18183
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:35:16 +0000 (23:35 +0000)]
Handle space, separators, bad substitutions, and library search path better
than before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18182
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 23 Nov 2004 23:33:08 +0000 (23:33 +0000)]
Configurable language configuration files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18181
91177308-0d34-0410-b5e6-
96231b3b80d8