Commit Graph

3223 Commits

Author SHA1 Message Date
Reid Spencer
4933af147a For PR1077:
Global variable definitions with the same name and same type are no longer
valid so don't attempt to test for this "feature".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32909 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 17:22:13 +00:00
Reid Spencer
bdcb9dfc3a Give the assembler some input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32903 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 16:45:06 +00:00
Evan Cheng
00c29703fe Add a test case for SSE fcopysign using SSE bitwise operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32901 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 08:12:59 +00:00
Chris Lattner
4e56f7c81c new test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32898 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 07:35:24 +00:00
Chris Lattner
15411cbe6b manually upgrade this testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32897 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 07:34:41 +00:00
Chris Lattner
297a22b97d new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32892 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 03:03:51 +00:00
Chris Lattner
e76b77c96a llvm upgrade doesn't accept 'define'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32891 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 03:03:27 +00:00
Chris Lattner
0a2c88dafc new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32889 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-05 02:16:36 +00:00
Chris Lattner
05a1416463 add missing flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32885 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 23:18:14 +00:00
Chris Lattner
e0170dfd2a new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32883 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 22:22:07 +00:00
Chris Lattner
ad8d6dedf1 remove xfailed test that depends on obsolete argument to lli
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32876 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 17:47:42 +00:00
Reid Spencer
6a21d848b6 Remove a manual renaming of a variable that was introduced before
llvm-upgrade could properly handle collapsed type planes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32875 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 16:46:46 +00:00
Lauro Ramos Venancio
b2a69a1923 Add test for constructor and destructor sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32873 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 14:41:33 +00:00
Lauro Ramos Venancio
30b51d90f4 Add extload(i1) test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32872 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 14:27:21 +00:00
Lauro Ramos Venancio
4c6676c918 Add test for FCOPYSIGN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32871 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 14:24:32 +00:00
Reid Spencer
1b7a880c98 XFAIL this test until such time that code gen can handle a comparison of
packed types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32863 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 03:06:23 +00:00
Reid Spencer
c01901c637 Add a test to ensure that we can assembly comparisons of packed values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32854 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 00:29:09 +00:00
Reid Spencer
13701fa098 Test @zext and @sext fully as well as testing the "short" call syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32851 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-04 00:03:37 +00:00
Reid Spencer
5f1397d677 Add a test case to test parameter attributes feature.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32850 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-03 23:54:02 +00:00
Reid Spencer
f6dc65f672 Update test cases that grepped for register names that have now changed
as a result of llvm-upgrade handling collapsed type planes better.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32849 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-03 23:47:29 +00:00
Reid Spencer
0a516f926f It is no longer permissible to have undefined types in function parameters.
Just fix it by defining the type as opaque.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32838 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-03 17:03:48 +00:00
Reid Spencer
6f978b1eff Fix this test case. It is no longer permissible to have undefined types
in function parameters. Fix by just defining the type as opaque.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32837 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-03 17:01:18 +00:00
Reid Spencer
2233361a83 Fix this test cases to use parameter attributes for its parameter and
result types. These tests are checking for sext behavior and it won't
happen unless requested with the parameter attribute.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32828 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-03 04:20:23 +00:00
Reid Spencer
56581b713d This test case previously passed the assembler without error even though
it used an undefined type name as a parameter argument. This bug in the
assembler has been fixed and it is now necessary to define the type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32826 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 21:56:26 +00:00
Reid Spencer
42525a3c5b Add a test case for abstract parameter and result types in function
definitions. The assembler should produce an error on this input.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32819 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 20:47:51 +00:00
Jim Laskey
cb69b2f0dc PR1068 - Unbounded array debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32818 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 11:53:52 +00:00
Reid Spencer
7e6b4f7a6d For PR1070:
Tweak the RUN: lines of these tests to accommodate the renaming of
variables done by llvm-upgrade. The renaming occurs as a result of avoiding
name collisons for collapsed type planes. Conflicting names have a .u
(unsigned) or .s (signed) suffix added. This patch updates the grep
expression to accommodate the new names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32815 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:55:05 +00:00
Reid Spencer
8aabc9eb23 For PR1070:
Revert previous patch now that llvm-upgrade can handle collapsed type
plane conversion properly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32814 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:53:06 +00:00
Reid Spencer
a14c3f11ac Manually upgrade this test case to make sure that the new cast-to-bool
semantics are retained.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32813 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:50:11 +00:00
Reid Spencer
6e8e64421e For PR1070:
Add a test case to ensure that llvm-upgrade retains correct semantics
for the previous definition of "cast to bool" which compared against null.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32812 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:48:32 +00:00
Reid Spencer
627c73d13a Reverse last patch, committed by accident.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32809 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 04:30:40 +00:00
Reid Spencer
4265a08779 Fix this test case to be legal. There is no ubyte %tmp ever defined!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32808 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 04:19:32 +00:00
Reid Spencer
8155d6d8d9 Back out last revision now that llvm-upgrade can remove useless bitcasts.
This serves as a test of that feature.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32806 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-01 01:22:53 +00:00
Rafael Espindola
9985f9f61e implement missing compares
patch by Lauro
bug fixed by me


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32795 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-31 18:52:39 +00:00
Reid Spencer
eacb7020ec For PR950:
Update the test suite to accommodate the change from signed integer types
to signless integer types. The changes were of only a few kinds:

1. Make sure llvm-upgrade is run on the source which does the bulk of the
   changes automatically.

2. Change things like "grep 'int'" to "grep 'i32'"

3. In several tests bitcasting caused the same name to be reused in the
   same type plane. These had to be manually fixed. The fix was (generally)
   to leave the bitcast and provide the instruction with a new name. This
   should not affect the semantics of the test. In a few cases, the
   bitcasts were known to be superfluous and irrelevant to the test case
   so they were removed.

4. One test case uses a bytecode file which needed to be updated to the
   latest bytecode format.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32789 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-31 06:02:00 +00:00
Reid Spencer
d45bff9095 Run llvm-upgrade on test to prepare for new assembly syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32769 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-29 20:21:51 +00:00
Reid Spencer
73e70822ae Update tests that need to be run through llvm-upgrade. This is necessary
for upcoming changes to the llvm assembly grammar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32768 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-29 20:01:32 +00:00
Reid Spencer
00d35c5a34 Test case for PR1065.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32755 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-23 19:14:10 +00:00
Reid Spencer
e4d87aa2de For PR950:
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32751 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-23 06:05:41 +00:00
Chris Lattner
40bf725ef1 add a generic component to this test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32747 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-22 22:48:44 +00:00
Chris Lattner
8c5250f8ee let this pass for ppc/linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32746 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-22 22:38:38 +00:00
Reid Spencer
787bfe654c Integer constants now print out as signed values in the assembly,
regardless of the signedness of the associated type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32734 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-21 19:14:49 +00:00
Jim Laskey
bc9154641b These tests all rely on using register mnemonics and thus must behave in the
world of darwin.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32725 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-21 00:01:42 +00:00
Reid Spencer
505811e9dd Add some tests for negative constants to unsigned and large positive
constants to signed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32717 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-20 17:27:58 +00:00
Chris Lattner
d407f41413 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32714 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-20 06:20:23 +00:00
Reid Spencer
13b017c1f9 Update this test because constant integers are always printed signed now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32699 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 22:42:17 +00:00
Reid Spencer
b60528b8ab For PR950:
Test needs to be upgraded for the forthcoming FCmpInst patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32683 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:55:17 +00:00
Reid Spencer
79a7eaa5c3 This test needs to be upgraded for the forthcoming FCmpInst patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32682 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:50:30 +00:00
Reid Spencer
eae919f653 This test needs to be upgraded for the FCmpInst patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32677 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:30:58 +00:00
Reid Spencer
db167271fd Make sure linker output is overwritten so this test can pass multiple times.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32675 91177308-0d34-0410-b5e6-96231b3b80d8
2006-12-19 19:29:50 +00:00