Commit Graph

18 Commits

Author SHA1 Message Date
Duncan Sands
15030fc8e7 Check that accessing a struct field that occurs before the start
of the struct (!) works correctly.

llvm-svn: 84853
2009-10-22 12:53:25 +00:00
Duncan Sands
7672e59eb8 Test handling of record fields with negative offsets.
llvm-svn: 84851
2009-10-22 10:02:10 +00:00
Duncan Sands
38860e65b3 Adjust this test for recent sroa improvements.
llvm-svn: 66791
2009-03-12 11:56:12 +00:00
Duncan Sands
4111c9d34c Check that records with a known constant size are not
copied field by LLVM field if the record has a variable
sized field in it.  The problem is that the LLVM field
will not completely cover the variable sized gcc field.

llvm-svn: 65463
2009-02-25 18:10:49 +00:00
Duncan Sands
26e54f3570 Teach constant folding that an inttoptr of a
ptrtoint can be turned into a bitcast if the
integer is at least as wide as a pointer.

llvm-svn: 54752
2008-08-13 20:20:35 +00:00
Duncan Sands
1095bdca79 Testcase for gimplify_expr crash caused by an
unexpected placeholder_expr.

llvm-svn: 46006
2008-01-15 19:55:41 +00:00
Duncan Sands
8a7547d26f Testcase with non-integer "bitfields" (in quotes,
since they didn't actually need to be bitfields,
though they are marked as such).

llvm-svn: 45588
2008-01-04 17:31:56 +00:00
Duncan Sands
4f9b058e95 Test for handling of large bit offset from a
variable field offset.

llvm-svn: 45534
2008-01-03 11:53:52 +00:00
Duncan Sands
cc3a49623f An example for which the TYPE_SIZE was being set from
the initial value, while the type fields were not (this
is a qualified union type, so not all fields are always
present).  This resulted in the size of the corresponding
LLVM type being larger than the gcc TYPE_SIZE.

llvm-svn: 45522
2008-01-03 00:26:42 +00:00
Duncan Sands
fcb856ad1e Test handling of records for which the fields are
not ordered by offset.

llvm-svn: 45520
2008-01-03 00:17:02 +00:00
Duncan Sands
ec44ba07b5 For multipart tests, place the parts with no
RUN line in Support.  Give up on sending output
to /dev/null - this cannot always be arranged.

llvm-svn: 40436
2007-07-23 13:41:53 +00:00
Duncan Sands
4c9ef6f848 Testcase for yet another global constant Ada f-e bug.
llvm-svn: 36874
2007-05-06 16:20:30 +00:00
Duncan Sands
c0464dd9ee Test that TREE_CONSTANT is being set correctly.
llvm-svn: 36645
2007-05-02 07:43:14 +00:00
Duncan Sands
2f2e949039 Test that inline assembler compiles (llvm-gcc added an extra "uses" parameter
to ASM_EXPR).

llvm-svn: 36644
2007-05-02 07:41:22 +00:00
Reid Spencer
49926e54a0 Replace llvm_gcc_supports_ada and llvm_gcc_supports_objc with just a single
llvm_gcc_supports function that takes the language as an argument. Base that
function on the new LLVMGCC_LANGS configured variable so that we don't have
to execute feature checks during the test run.

llvm-svn: 36322
2007-04-21 21:45:51 +00:00
Duncan Sands
1a1b798094 Test if the compiler supports Ada, and enable Ada tests if so. While I was
there, delete a temporary file the objc test forgot to delete.

llvm-svn: 36312
2007-04-21 20:20:47 +00:00
Duncan Sands
1f61b7273e Testcase for debug info emission for structure fields at variable offsets.
llvm-svn: 36147
2007-04-16 18:49:21 +00:00
Chris Lattner
3888505be5 move ada tests
llvm-svn: 35629
2007-04-03 21:46:22 +00:00