Commit Graph

151 Commits

Author SHA1 Message Date
Bill Wendling
839e21bce4 Add test to make sure that #pragma mark/error doesn't error if there are
unbalanced quotes.

llvm-svn: 46476
2008-01-29 00:41:29 +00:00
Duncan Sands
93f785a638 Pure/const functions with ByVal parameters cannot
be marked readonly either.

llvm-svn: 46456
2008-01-28 19:25:47 +00:00
Duncan Sands
ecab334ce0 Make this more likely to be passed byval.
llvm-svn: 46451
2008-01-28 10:35:11 +00:00
Bill Wendling
7151e8d92c Move testcase to the code gen directory.
llvm-svn: 46395
2008-01-26 06:53:06 +00:00
Duncan Sands
792234c366 Create an explicit copy for byval parameters even
when inlining a readonly function.

llvm-svn: 46393
2008-01-26 06:41:49 +00:00
Bill Wendling
1e56a2ffb6 If we have a function like this:
void bork() {
  int *address = 0;
  *address = 0;
}

It's compiled into LLVM code that looks like this:

define void @bork() noreturn nounwind  {
entry:
        unreachable
}

This is bad on some platforms (like PPC) because it will generate the label for
the function but no body. The label could end up being associated with some
non-code related stuff, like a section. This places a "trap" instruction if the
SimplifyCFG pass removed all code from the function leaving only one
"unreachable" instruction.

llvm-svn: 46387
2008-01-26 01:43:44 +00:00
Devang Patel
c40820e322 Add another testcase.
llvm-svn: 46385
2008-01-26 01:21:48 +00:00
Evan Cheng
e62e9a8d96 New test case.
llvm-svn: 46382
2008-01-26 00:35:43 +00:00
Chris Lattner
c2df169459 add a testcase for a bug Duncan pointed out.
llvm-svn: 46372
2008-01-25 22:36:24 +00:00
Devang Patel
587591ba1b New test.
llvm-svn: 46333
2008-01-24 23:55:34 +00:00
Devang Patel
6fae526290 New test.
llvm-svn: 46220
2008-01-21 22:15:58 +00:00
Devang Patel
6d3139addd New test.
llvm-svn: 46209
2008-01-21 19:28:13 +00:00
Duncan Sands
1853262730 Check that nested functions don't get pointless
static chains.

llvm-svn: 45936
2008-01-13 18:44:12 +00:00
Chris Lattner
7853f9d2df Testcase for PR1721
llvm-svn: 45739
2008-01-08 05:16:29 +00:00
Duncan Sands
93c581f2a8 Testcase for PR1386.
llvm-svn: 45583
2008-01-04 13:15:39 +00:00
Gordon Henriksen
81148ffd7e Strengthening this test so it fails in release mode.
llvm-svn: 45446
2007-12-30 05:45:49 +00:00
Dale Johannesen
d0377b8eb2 Testcase for preceding FE fix
llvm-svn: 45144
2007-12-18 01:58:38 +00:00
Duncan Sands
bf62f62058 Make instcombine promote inline asm calls to 'nounwind'
calls.  Remove special casing of inline asm from the
inliner.  There is a potential problem: the verifier
rejects invokes of inline asm (not sure why).  If an
asm call is not marked "nounwind" in some .ll, and
instcombine is not run, but the inliner is run, then
an illegal module will be created.  This is bad but
I'm not sure what the best approach is.  I'm tempted
to remove the check in the verifier...

llvm-svn: 45073
2007-12-16 15:51:49 +00:00
Dan Gohman
7867eefd96 Use not instead of ignore when an exit status is expected to always
be non-zero.

llvm-svn: 44866
2007-12-11 15:50:23 +00:00
Chris Lattner
79cd8c14c5 New testcase for PR1744
llvm-svn: 44418
2007-11-28 22:43:34 +00:00
Tanya Lattner
c33660d278 Fix bug in regression tests that ignored stderr output in RUN lines. Updated tests and fixed broken run lines.
XFAILed 3 arm regressions (will file bugs)

llvm-svn: 44389
2007-11-28 04:57:00 +00:00
Anton Korobeynikov
49e06eb17d Add testcase for last llvm-gcc tweaks
llvm-svn: 44368
2007-11-27 18:21:29 +00:00
Zhou Sheng
cc5e89d3c1 Make this pass for CYGWIN.
llvm-svn: 44354
2007-11-27 06:23:59 +00:00
Zhou Sheng
1fec3fccb0 Make this testcase compatible with CYGWIN.
llvm-svn: 44353
2007-11-27 06:17:01 +00:00
Duncan Sands
6b30ae8267 Un XFAIL these tests, now that Bill has backported
the fix from 4.2.

llvm-svn: 44115
2007-11-14 13:40:53 +00:00
Duncan Sands
4fe87dc2d7 XFAIL these tests until the fix gets backported
from llvm-gcc-4.2 to 4.0.

llvm-svn: 44103
2007-11-14 07:42:50 +00:00
Duncan Sands
ef4d3ad387 Check that the first and third characters, s and u,
are accessed with an alignment of 2 not 1.

llvm-svn: 43932
2007-11-09 07:47:29 +00:00
Duncan Sands
90137bda38 Check that accesses to the second short, t, have
an alignment of 2 rather than 4.

llvm-svn: 43931
2007-11-09 07:46:02 +00:00
Bill Wendling
910f86f8d3 Add testcase
llvm-svn: 43839
2007-11-07 19:36:26 +00:00
Devang Patel
d646b31441 New test.
llvm-svn: 43527
2007-10-30 23:07:47 +00:00
Bill Wendling
0d90333ff2 Test to make sure that if we have an unaligned memcpy, it will still compile.
llvm-svn: 43412
2007-10-26 23:43:35 +00:00
Dale Johannesen
0d3f583c8b Testcase for PR 1397.
llvm-svn: 43323
2007-10-25 00:50:14 +00:00
Bill Wendling
df262eb966 Don't branch fold inline asm statements.
llvm-svn: 43191
2007-10-19 21:09:55 +00:00
Devang Patel
a1947ff877 New test.
llvm-svn: 42986
2007-10-15 15:41:07 +00:00
Chris Lattner
cd424fc6c2 testcase for PR1647
llvm-svn: 42570
2007-10-03 05:29:07 +00:00
Devang Patel
97960ce055 PR 1603 test case.
llvm-svn: 42502
2007-10-01 21:22:57 +00:00
Devang Patel
0f55c6012c Do not ignore packed member size while selecting union type.
llvm-svn: 42458
2007-09-28 23:54:26 +00:00
Chris Lattner
340cc2bcc1 new testcase for PR1708
llvm-svn: 42398
2007-09-27 15:47:16 +00:00
Duncan Sands
b44b922bc1 Test the C front-end, not the C++ front-end.
llvm-svn: 42350
2007-09-26 07:28:20 +00:00
Duncan Sands
41eb9bf1f1 Test that local variables are aligned as the user requested.
llvm-svn: 42338
2007-09-26 04:04:29 +00:00
Tanya Lattner
52ae97fea6 XFAIL for llvm-gcc4.0
llvm-svn: 42266
2007-09-24 17:14:53 +00:00
Chris Lattner
966871b0df gcroot testcase, patch by Eric Christopher.
llvm-svn: 42198
2007-09-21 17:48:39 +00:00
Duncan Sands
159524a84f Testcase for PR1678.
llvm-svn: 42128
2007-09-19 07:43:17 +00:00
Chris Lattner
489e7aa85f New testcase for PR1662. GCC trees are horrible :(
llvm-svn: 41979
2007-09-15 05:46:41 +00:00
Anton Korobeynikov
ed40962dc3 Fix date :)
llvm-svn: 41870
2007-09-11 22:20:27 +00:00
Anton Korobeynikov
c8ca85bf8f Testcase for recent pragma pack stuff
llvm-svn: 41869
2007-09-11 22:12:26 +00:00
Bill Wendling
538f8f9d7f Test for PR1641.
llvm-svn: 41762
2007-09-07 08:30:09 +00:00
Duncan Sands
30440c6c4e Fix this testcase: there are two matches for
llvm.cttz.i64 because of the declaration of
the intrinsic.  Also, emit-llvm is automatic
and doesn't need to be specified.

llvm-svn: 41326
2007-08-23 17:22:50 +00:00
Bill Wendling
d3c8db882d Testcase for llvm.c* intrinsic failures.
llvm-svn: 41268
2007-08-22 07:26:30 +00:00
Duncan Sands
f275ac587b Test handling of complex constants as lvalues.
llvm-svn: 41266
2007-08-22 05:58:22 +00:00