Rafael Espindola
15829c6c4c
Add test that was missing in my previous commit.
...
llvm-svn: 114248
2010-09-18 00:37:27 +00:00
Bill Wendling
cbacefd36f
Testcase for r114239.
...
llvm-svn: 114247
2010-09-18 00:26:29 +00:00
Tom Care
0bd3431a5e
Revert r114244 since it breaks a test in Analysis.
...
llvm-svn: 114246
2010-09-18 00:17:17 +00:00
Johnny Chen
49b415de1f
Added a hook for the test driver to take an optional config file to customize
...
the running of the test suite. Right now, it doesn't do anything with the
config file.
Pass "-c myConfigFile" to specify the config file.
llvm-svn: 114245
2010-09-18 00:16:47 +00:00
Tom Care
0f99e64305
IdempotentOperationChecker no longer reports errors that are post-dominated by a sink. This fixes some false positives that were flagged because a path was incomplete (usually in a loop).
...
llvm-svn: 114244
2010-09-18 00:06:34 +00:00
Jim Grosbach
af5d63583e
factor out a simple helper function to create a label for PC-relative
...
instructions (PICADD, PICLDR, et.al.)
llvm-svn: 114243
2010-09-18 00:05:05 +00:00
Jim Grosbach
8a5a6a6c1e
PC-relative pseudo instructions are lowered and printed directly. Any encounter
...
with one in the generic printing code is an error.
llvm-svn: 114242
2010-09-18 00:04:53 +00:00
Dan Gohman
49c15c0f9f
Attempt to XFAIL this test on arm-linux, which is inexplicably failing.
...
llvm-svn: 114241
2010-09-18 00:04:37 +00:00
Benjamin Kramer
de636ca9a8
Fix vmov.f64 disassembly on targets where sizeof(long) != 8.
...
llvm-svn: 114240
2010-09-17 23:48:07 +00:00
Bill Wendling
d632616f86
The MMX shift-with-immediate builtins require the equivalent
...
shift-with-immediate LLVM intrinsics.
llvm-svn: 114239
2010-09-17 23:46:16 +00:00
Bill Wendling
30983bfcd5
Remove FIXME. The type is correct.
...
llvm-svn: 114238
2010-09-17 23:45:24 +00:00
Jim Grosbach
3d97920829
Add MC-inst handling for tPICADD
...
llvm-svn: 114237
2010-09-17 23:41:53 +00:00
Daniel Dunbar
60785eb0f2
Sema/transparent_union: Make sure to add implicit cast when constructing
...
implicit union values for the transparent_union extension.
llvm-svn: 114236
2010-09-17 23:21:43 +00:00
Ted Kremenek
3586938d37
Tweak in DeclPrinter printing of uses of copy constructors. Patch by Jim Goodnow II.
...
llvm-svn: 114235
2010-09-17 23:04:38 +00:00
Douglas Gregor
196cf88a01
Update test
...
llvm-svn: 114234
2010-09-17 23:01:08 +00:00
Bob Wilson
cb6db98897
Add target-specific DAG combiner for BUILD_VECTOR and VMOVRRD. An i64
...
value should be in GPRs when it's going to be used as a scalar, and we use
VMOVRRD to make that happen, but if the value is converted back to a vector
we need to fold to a simple bit_convert. Radar 8407927.
llvm-svn: 114233
2010-09-17 22:59:05 +00:00
Johnny Chen
aa90292126
Fixed a typo and supplied a more appropriate assert message.
...
llvm-svn: 114232
2010-09-17 22:45:27 +00:00
Douglas Gregor
ec06c124f1
Improve recovery when the middle expression of a ternary operator is ill-formed
...
llvm-svn: 114231
2010-09-17 22:41:34 +00:00
Jim Grosbach
7a6c37d3e7
Teach the (non-MC) instruction printer to use the cannonical names for push/pop,
...
and shift instructions on ARM. Update the tests to match.
llvm-svn: 114230
2010-09-17 22:36:38 +00:00
Rafael Espindola
0ecde03e9f
Avoid relocations in a common case.
...
llvm-svn: 114229
2010-09-17 22:34:41 +00:00
Johnny Chen
b330786d1f
Added test cases to FoundationTestCase to exercise lookup of objc data types and
...
to evaluate expressions. Marked with @expectedFailure decorators for the time
being.
Enhanced the lldbtest.TestBase.expect() API to allow an additional keyword arg
named "error". If the client passes "error=True", it signifies that an error
while running the command is expected. The golden input is then compared
against the return object's error output.
llvm-svn: 114228
2010-09-17 22:28:51 +00:00
Evan Cheng
e53ab6dffc
Teach machine sink to
...
1) Do forward copy propagation. This makes it easier to estimate the cost of the
instruction being sunk.
2) Break critical edges on demand, including cases where the value is used by
PHI nodes.
Critical edge splitting is not yet enabled by default.
llvm-svn: 114227
2010-09-17 22:28:18 +00:00
Eric Christopher
2ccc1aa696
Rework arm fast isel branch and compare code.
...
llvm-svn: 114226
2010-09-17 22:28:18 +00:00
Douglas Gregor
29d907de03
When we run into an error parsing or type-checking the left-hand side
...
of a binary expression, continue on and parse the right-hand side of
the binary expression anyway, but don't call the semantic actions to
type-check. Previously, we would see the error and then, effectively,
skip tokens until the end of the statement.
The result should be more useful recovery, both in the normal case
(we'll actually see errors beyond the first one in a statement), but
it also helps code completion do a much better job, because we do
"real" code completion on the right-hand side of an invalid binary
expression rather than completing with the recovery completion. For
example, given
x = p->y
if there is no variable named "x", we can still complete after the p->
as a member expression. Along the recovery path, we would have
completed after the "->" as if we were in an expression context, which
is mostly useless.
llvm-svn: 114225
2010-09-17 22:25:06 +00:00
Fariborz Jahanian
b3e8712a14
Diagnose use of incomplete type on method argument type of
...
method definitions instead of crashing in code gen.
Fixes radar 8421082.
llvm-svn: 114223
2010-09-17 22:07:07 +00:00
Evan Cheng
b08377e0db
Machine CSE was forgetting to clear some data structures.
...
llvm-svn: 114222
2010-09-17 21:59:42 +00:00
Jim Grosbach
6d800f88da
Update tests to handle MC-inst instruction printing of shift operations. The
...
legacy asm printer uses instructions of the form, "mov r0, r0, lsl #3", while
the MC-instruction printer uses the form "lsl r0, r0, #3". The latter mnemonic
is correct and preferred according the ARM documentation (A8.6.98). The former
are pseudo-instructions for the latter.
llvm-svn: 114221
2010-09-17 21:58:46 +00:00
Evan Cheng
0dcd3362bd
Fix a potential bug that can cause miscomparison with and without debug info.
...
llvm-svn: 114220
2010-09-17 21:56:26 +00:00
Jakob Stoklund Olesen
4a253e5ac8
Don't include <fenv.h> now that we have llvm/System/FEnv.h.
...
llvm-svn: 114219
2010-09-17 21:47:03 +00:00
Jim Grosbach
4a5e54021a
FileCheck-ize
...
llvm-svn: 114218
2010-09-17 21:46:16 +00:00
Douglas Gregor
21fd023d44
Update C++0x status
...
llvm-svn: 114217
2010-09-17 21:37:49 +00:00
Jim Grosbach
132a0ce787
Hook up verbose asm comment printing for SOImm operands in MC printer
...
llvm-svn: 114215
2010-09-17 21:33:25 +00:00
Jim Grosbach
4e51d0bebb
trailing whitespace
...
llvm-svn: 114212
2010-09-17 21:25:10 +00:00
Jim Grosbach
757732c25e
trailing whitespace
...
llvm-svn: 114211
2010-09-17 21:23:56 +00:00
Johnny Chen
b219d281b0
Changed test case method names.
...
llvm-svn: 114210
2010-09-17 21:14:02 +00:00
Chris Lattner
bb3bcd868a
fix rdar://8445858 - __sync_* intrinsics erroneously reject ObjC pointers
...
llvm-svn: 114209
2010-09-17 21:12:38 +00:00
Fariborz Jahanian
aaf44b2237
Only assignment operator triggers property setter call.
...
Fixes radar 8437253.
llvm-svn: 114207
2010-09-17 20:45:45 +00:00
Jim Grosbach
20da4e360b
Move thumb2 tests to the thumb2 directory
...
llvm-svn: 114206
2010-09-17 20:34:09 +00:00
Oscar Fuentes
bcc8b2f9e5
cmake: test for the presence of fenv.h
...
llvm-svn: 114205
2010-09-17 20:30:48 +00:00
Jim Grosbach
9b0cd20f72
tweak test to check instructions rather than relying on the comment string
...
llvm-svn: 114204
2010-09-17 20:27:26 +00:00
Douglas Gregor
f9088c93be
When traversing an InitListExpr, there may not be a syntactic form;
...
check for NULL and visit the InitListExpr we have if there is no
syntactic form.
llvm-svn: 114203
2010-09-17 20:26:51 +00:00
Dan Gohman
f3a9c464b4
Fix this test to avoid an "inexact" fold.
...
llvm-svn: 114202
2010-09-17 20:25:43 +00:00
Dan Gohman
534db8a5c8
Avoid emitting a PIC base register if no PIC addresses are needed.
...
This fixes rdar://8396318.
llvm-svn: 114201
2010-09-17 20:24:24 +00:00
Jim Grosbach
f3ceecec7e
tweak test to check instructions rather than relying on the comment string
...
llvm-svn: 114200
2010-09-17 20:21:03 +00:00
Jim Grosbach
c18a460adc
tweak test to check instructions rather than relying on the comment string
...
llvm-svn: 114199
2010-09-17 20:17:41 +00:00
Dan Gohman
695312637c
Fix this test so that folding doesn't depend on a potentially
...
"inexact" result.
llvm-svn: 114198
2010-09-17 20:15:53 +00:00
Dan Gohman
df25777f78
Regenerate.
...
llvm-svn: 114197
2010-09-17 20:08:35 +00:00
Dan Gohman
b48f904602
Attempt to support platforms which don't have fenv.h.
...
llvm-svn: 114196
2010-09-17 20:06:27 +00:00
Jim Grosbach
1287f4f3b8
Add skeleton infrastructure for the ARMMCCodeEmitter class. Patch by Jason Kim!
...
llvm-svn: 114195
2010-09-17 18:46:17 +00:00
Johnny Chen
aec0c322d3
Fixed build error of LLDBWrapPython.cpp by removing the "protected" access modifier.
...
llvm-svn: 114194
2010-09-17 18:39:57 +00:00