31724 Commits

Author SHA1 Message Date
Evan Cheng
b2a6b0dbad Clean up.
llvm-svn: 31957
2006-11-28 02:25:34 +00:00
Evan Cheng
db8f19fb90 Fix indentation.
llvm-svn: 31956
2006-11-28 02:22:51 +00:00
Bill Wendling
dfc91897df Changed to using LLVM streams.
llvm-svn: 31955
2006-11-28 02:09:03 +00:00
Bill Wendling
3f6f0fd028 Changed to using llvm streams.
llvm-svn: 31954
2006-11-28 02:08:17 +00:00
Bill Wendling
cd2f1a897f Added helper function to transition to using llvm streams.
llvm-svn: 31953
2006-11-28 02:07:29 +00:00
Evan Cheng
8ddbdc70b7 Fix JIT encoding bugs for shift / rotate by one ops.
llvm-svn: 31952
2006-11-28 01:28:00 +00:00
Chris Lattner
e88ff3a961 testcase for pr1016
llvm-svn: 31951
2006-11-28 01:26:37 +00:00
Chris Lattner
3abb63651b Fix PR1016
llvm-svn: 31950
2006-11-28 01:03:30 +00:00
Bill Wendling
5834fdb371 Removed #include <iostream> and replaced streams with llvm streams.
llvm-svn: 31949
2006-11-27 23:54:50 +00:00
Andrew Lenharth
e8c64aba11 Preliminary support for inline asm in the cbe. The target specific ugliness
is still in Writer, but issolated to a single function. This might be split
into something in each target directory.  This is sufficient to get through
archie and an strcpy impl on linux-x86.

Module level asm is not handled.

llvm-svn: 31948
2006-11-27 23:50:49 +00:00
Evan Cheng
20350c4025 Change MachineInstr ctor's to take a TargetInstrDescriptor reference instead
of opcode and number of operands.

llvm-svn: 31947
2006-11-27 23:37:22 +00:00
Chris Lattner
5230e9175a remove dead tag
llvm-svn: 31944
2006-11-27 21:53:28 +00:00
Chris Lattner
5d5916b4d1 Fix the dag combiner bug corresponding to PR1014.
llvm-svn: 31943
2006-11-27 21:50:02 +00:00
Chris Lattner
f36cc15a84 this doesn't pass with CVS HEAD.
llvm-svn: 31942
2006-11-27 20:01:48 +00:00
Chris Lattner
8e9a7b73d9 Fix PR1014 and InstCombine/2006-11-27-XorBug.ll.
llvm-svn: 31941
2006-11-27 19:55:07 +00:00
Reid Spencer
5fb4da8c5d Add 3 more test cases for ptrtoint, fptoui and fptosi
llvm-svn: 31940
2006-11-27 19:54:23 +00:00
Chris Lattner
2c2e34b2c4 testcase for PR1014
llvm-svn: 31939
2006-11-27 19:47:22 +00:00
Reid Spencer
16eaffe595 When truncating to bool, it is necessary to & with 1 for all casts that
can result in a bool. Previously PtrToInt, FPToUI and FPToSI were missing
this operation.

llvm-svn: 31938
2006-11-27 18:51:06 +00:00
Bill Wendling
f790e9de2c Protect against null streams.
llvm-svn: 31937
2006-11-27 10:45:49 +00:00
Bill Wendling
7339b8dbfd Removed #include <iostream> and replaced with llvm_* streams.
llvm-svn: 31936
2006-11-27 10:09:12 +00:00
Reid Spencer
141519fbc0 Alter these tests to ensure they match a "test $1, X" X86 instruction that
is now generated by the LLVM backend for "trunc to bool" instructions.

llvm-svn: 31935
2006-11-27 05:08:03 +00:00
Reid Spencer
b3281892d9 Add a test to ensure a bitcast/and/trunc combination eliminates the bitcast.
llvm-svn: 31934
2006-11-27 05:06:58 +00:00
Chris Lattner
3da631f29a For better or worse, load from i1 is assumed to be zero extended. Do not
form a load from i1 from larger loads that may not be zext'd.

llvm-svn: 31933
2006-11-27 04:40:53 +00:00
Chris Lattner
db18938355 If a brcond condition is promoted, make sure to zero extend it, even if not
expanded into BR_CC.

llvm-svn: 31932
2006-11-27 04:39:56 +00:00
Reid Spencer
6c38f0bb07 For PR950:
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.

llvm-svn: 31931
2006-11-27 01:05:10 +00:00
Reid Spencer
afbc00bc38 Don't use bitcast yet!
llvm-svn: 31930
2006-11-26 21:22:01 +00:00
Reid Spencer
2dd1741565 Make this test case easier to read. No functional changes.
llvm-svn: 31929
2006-11-26 18:27:09 +00:00
Bill Wendling
3750ae25a0 Removed #include <iostream> and replace with llvm_* streams.
llvm-svn: 31927
2006-11-26 10:52:51 +00:00
Bill Wendling
a88968b9c4 Add method that will take a function pointer so that it can handle things
like "llvm_cerr << std::flush";

llvm-svn: 31926
2006-11-26 10:51:51 +00:00
Bill Wendling
4ae401074c Remove #include <iostream> and use llvm_* streams instead.
llvm-svn: 31925
2006-11-26 10:17:54 +00:00
Bill Wendling
8f13b5c43e Replace #include <iostream> with llvm_* streams.
llvm-svn: 31924
2006-11-26 10:02:32 +00:00
Bill Wendling
5dbf43c983 Removed #include <iostream> and replaced with llvm_* streams.
llvm-svn: 31923
2006-11-26 09:46:52 +00:00
Bill Wendling
a7459ca813 Removed #include <iostream> and used the llvm_cerr/DOUT streams instead.
llvm-svn: 31922
2006-11-26 09:17:06 +00:00
Duraid Madina
24cdf575e7 fix storing bools to mem and unordered FP ops
llvm-svn: 31920
2006-11-26 04:34:26 +00:00
Reid Spencer
aa5c220665 Make the absolute/relative tolerance information easier to read/understand.
llvm-svn: 31908
2006-11-25 08:38:44 +00:00
Reid Spencer
6968c497de Add newline at end of file.
llvm-svn: 31902
2006-11-25 05:41:02 +00:00
Reid Spencer
6984a15600 Only show the first few lines of difference.
llvm-svn: 31901
2006-11-25 04:07:06 +00:00
Reid Spencer
17782030cf Add an option to enable lli (interpreter mode) testing.
llvm-svn: 31899
2006-11-24 20:34:16 +00:00
Reid Spencer
3c3324c7fa Fix some typos.
llvm-svn: 31897
2006-11-23 16:45:52 +00:00
Reid Spencer
0e43e15fc9 Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.

llvm-svn: 31896
2006-11-23 15:14:52 +00:00
Nick Lewycky
09b7e4d3ab Update to new predicate simplifier VRP design. Fixes PR966 and PR967.
Remove predicate simplifier from default gcc3 pipeline. New design is too
slow to enable by default.
Add new testcases for problems encountered in development.

llvm-svn: 31895
2006-11-22 23:49:16 +00:00
Reid Spencer
fff57ce9cd Stop early if there is no mis-optimization.
llvm-svn: 31893
2006-11-22 03:46:45 +00:00
John Criswell
4666c085f3 Documented the --disable-compression option in gccld and gccas.
llvm-svn: 31892
2006-11-21 22:53:12 +00:00
John Criswell
dffef2d2f5 Added the --disable-compression option which controls whether the
generated bytecode uses compression.

llvm-svn: 31891
2006-11-21 22:50:24 +00:00
Chris Lattner
ec45a4c88c This xform is handled by FoldOpIntoPhi in visitCastInst in a more elegant way.
llvm-svn: 31889
2006-11-21 17:05:13 +00:00
Anton Korobeynikov
5b96cdebb0 Refactored *GVRequiresExtraLoad() to Subtarget method.
llvm-svn: 31887
2006-11-21 00:01:06 +00:00
Jim Laskey
efcaa4a8f5 Test for PR1013.
llvm-svn: 31886
2006-11-20 21:58:02 +00:00
Chris Lattner
e06180bab8 new testcase
llvm-svn: 31885
2006-11-20 21:20:57 +00:00
Chris Lattner
ec5dbccdcf in ppc64-mode, don't allocate the 32-bit version of r13 either.
llvm-svn: 31884
2006-11-20 20:48:05 +00:00
Jim Laskey
d7f53cdaec Global label not handled correctly.
llvm-svn: 31883
2006-11-20 20:29:06 +00:00