Commit Graph

129 Commits

Author SHA1 Message Date
John Criswell
1b4fb5a32c Renamed intermediate values that used the same type and name as previous
values.  All of these files should assemble now.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10239 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-26 14:45:37 +00:00
Chris Lattner
cb64241795 update test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10092 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-19 19:47:36 +00:00
Chris Lattner
607c317488 Genericize tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10091 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-19 19:44:28 +00:00
Chris Lattner
639b052e7b Cleanup test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10090 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-19 19:42:12 +00:00
Chris Lattner
547eaefb0e New testcase, distilled from 176.gcc codegen failure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9248 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-18 23:54:45 +00:00
Misha Brukman
14285c89e7 Renamed as' => llvm-as', dis' => llvm-dis'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8544 91177308-0d34-0410-b5e6-96231b3b80d8
2003-09-15 20:02:53 +00:00
Chris Lattner
f687adae9b New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8128 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-24 19:23:31 +00:00
Chris Lattner
ae1c1ffacd new testcase distilled from 176.gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8094 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-23 23:38:59 +00:00
Chris Lattner
11a7fd1926 Simplify test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8025 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-21 21:33:19 +00:00
John Criswell
59da488266 Regression test that verifies that the JIT passes the environment to the
main() function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8023 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-21 21:18:21 +00:00
Chris Lattner
f2d4916dc7 New testcase identified by misha, distilled from the 'ls' program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7909 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-15 22:36:55 +00:00
Chris Lattner
699104633a Somehow "simplest" test became a hello world test. Rectify this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7353 91177308-0d34-0410-b5e6-96231b3b80d8
2003-07-27 00:28:10 +00:00
Chris Lattner
e03d077941 Get rid of control flow in the test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6957 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 22:53:07 +00:00
Misha Brukman
62d95e8227 Return 'int 0' instead of 'void' so that the test can be seen as successful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6654 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-06 08:00:40 +00:00
Misha Brukman
a5e7f35daa Return 'int 0' instead of void so that the test can be considered to pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6653 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-06 07:58:29 +00:00
Misha Brukman
c068bbcc5a Simplify test case: remove declaration of __main() and call to it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6648 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-06 06:50:43 +00:00
Chris Lattner
340a2875b5 New testcase, the JIT currently handles this right, I just don't want to
reintroduce a bug that didn't have a testcase.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6623 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-05 16:57:55 +00:00
Chris Lattner
7990199625 New testcase for PHI handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6621 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-05 05:38:30 +00:00
Chris Lattner
af2f438c2c Add tests for cast of long to bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6508 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-01 03:37:25 +00:00
Chris Lattner
e4a013377a Add tests for 64 bit shifts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6501 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-01 01:57:44 +00:00
Chris Lattner
8c1919475f Enable more tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6149 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-12 20:39:30 +00:00
Chris Lattner
4f91285df4 Add tests for casts from unsigned integers to floats
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6147 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-12 20:35:29 +00:00
Chris Lattner
12ba6fd61f Add old test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6111 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-12 04:06:38 +00:00
Chris Lattner
bbd5839a97 Simplify testcase a bit more
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6107 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-12 02:31:48 +00:00
Chris Lattner
e22766c14d New testcase that crashes Jello
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6106 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-12 02:27:05 +00:00
Chris Lattner
761b47180e New testcase for problem that is actually generic to all 32 bit LLI targets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6016 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-07 20:23:32 +00:00
Chris Lattner
7c87e407fc New testcase distilled from the fhourstones benchmark
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6006 91177308-0d34-0410-b5e6-96231b3b80d8
2003-05-06 19:41:25 +00:00
Chris Lattner
20c1b4db39 Add more testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5330 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-16 19:43:11 +00:00
Chris Lattner
3ddad6f277 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5263 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 20:02:16 +00:00
Chris Lattner
4a8068f19a New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5261 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 01:03:16 +00:00
Chris Lattner
8e4a9144ec test the shift cases for long that are implemented
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5250 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:57:49 +00:00
Chris Lattner
6ce8d60a70 test longs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5249 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:57:37 +00:00
Chris Lattner
2ecd495235 Test longs and fp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5248 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:57:19 +00:00
Chris Lattner
67920c563b TEst longs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5247 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:57:11 +00:00
Chris Lattner
e1ac72a68c Add test for longs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5246 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:57:04 +00:00
Chris Lattner
6442a3eaae add div test as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5245 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:56:54 +00:00
Chris Lattner
102f533f69 test a bunch of stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5244 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:56:37 +00:00
Chris Lattner
376b12707a Test long support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5243 91177308-0d34-0410-b5e6-96231b3b80d8
2003-01-13 00:56:27 +00:00
Chris Lattner
6cc36d40e6 Add another simple call
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5160 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-28 20:01:07 +00:00
Chris Lattner
48664e7e2e Test argument passing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5159 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-28 20:00:47 +00:00
Chris Lattner
ce6754766f Add a variable sized alloca to test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5158 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-28 20:00:33 +00:00
Chris Lattner
3b24559df0 Initial fp test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5155 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-25 05:14:29 +00:00
Chris Lattner
83702d3f30 Print argc as well as argv
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5105 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-18 02:07:21 +00:00
Chris Lattner
5b9cd61946 Make testcase return 0 on success
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5091 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-17 02:02:01 +00:00
Chris Lattner
b89818ed5a Add dummy implementation of __main
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5089 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-16 23:31:48 +00:00
Chris Lattner
1ada064803 New testcase for printing out arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5085 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-16 20:09:54 +00:00
Chris Lattner
315bad0bc6 Add new testcase for repeated preds
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5056 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-15 20:52:08 +00:00
Chris Lattner
a4c096d671 New testcase for bool support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5031 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-15 07:55:43 +00:00
Chris Lattner
e4adeb47ff Test indirect call
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5025 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 14:15:20 +00:00
Chris Lattner
84b7207df8 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5018 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 12:10:16 +00:00
Chris Lattner
790f64bce8 Return success on success
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5006 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 10:13:45 +00:00
Chris Lattner
0907c16cbf Test more phi stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5005 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 10:12:50 +00:00
Brian Gaeke
ed6902ca89 lib/Target/X86/InstSelectSimple.cpp: Start counting arguments with 2,
because arguments start two stack slots off of EBP. Break out of the
 for loop once the argument is found. Increment the counter at the end
 of the loop instead of the beginning. Use addRegOffset and compute
 the scale * index part at compile time instead of using the fancy
 load instruction. Just because an instruction set has wacky addressing
 modes doesn't mean we ought to use them (at least, if you believe Dave
 Patterson).

lib/Target/X86/X86InstrBuilder.h: Add some comments.

test/Regression/Jello/test-loadstore.ll:  Let main return int 0.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4999 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 09:28:50 +00:00
Chris Lattner
4373140d8a return 0 on success
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4996 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 06:57:24 +00:00
Chris Lattner
bfbed6dbb2 Stop sucking
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4992 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 05:51:32 +00:00
Misha Brukman
297372c523 Making main() return 0 so that we know it ran successfully when it exits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4991 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 05:44:21 +00:00
Misha Brukman
d74317acba Making main() return 0 to exit without error when no error actually occurs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4990 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 05:43:36 +00:00
Chris Lattner
9a32f07857 Fix testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4989 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 05:42:57 +00:00
Chris Lattner
8b88e8f298 Infinite loops, are, well, not good
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4987 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 05:28:50 +00:00
Misha Brukman
339ff0acb8 This way it's easier to test: if the call to external exit(0) succeeded,
program exits with code 0, no error. If the call does not work/succeed, main
returns 1, so we notice it. The other way around doesn't work. :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4984 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-13 04:43:32 +00:00
Misha Brukman
e78dba871b Return 0 to make it into a fully-functioning "Hello, World!" test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4931 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-04 23:58:41 +00:00
Chris Lattner
4461f54bce Fix testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4926 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-04 23:51:44 +00:00
Chris Lattner
67c2639ced New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4920 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-04 17:35:11 +00:00
Chris Lattner
9f1bd80102 Add main functions to benchmarks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4915 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-04 17:15:07 +00:00
Chris Lattner
00af117381 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4912 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-04 17:00:25 +00:00
Chris Lattner
ac676bef50 Testcase for call instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4890 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-03 20:30:03 +00:00
Chris Lattner
92ae6c23f1 Standard hello-world test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4889 91177308-0d34-0410-b5e6-96231b3b80d8
2002-12-03 20:25:43 +00:00
Chris Lattner
69a09e5677 Make testcase more interesting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4820 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-21 23:30:08 +00:00
Chris Lattner
78c1d9037b Move test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4808 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-21 17:20:32 +00:00
Chris Lattner
9932bcddfc Shuffle testcases around
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4807 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-21 17:20:12 +00:00
Chris Lattner
2b905fdb81 New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4806 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-21 17:18:37 +00:00
Chris Lattner
e4ae94c367 New testcase for loads and stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4715 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-17 21:06:13 +00:00
Brian Gaeke
1cc1ad7171 comment out the 64-bit cases for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4604 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-07 18:09:02 +00:00
Brian Gaeke
1749d6359b Add instruction selection code and tests for setcc instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4603 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-07 17:59:21 +00:00
Chris Lattner
f37ca3acda Enable div and mod tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4507 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-02 20:54:11 +00:00
Chris Lattner
bbe75fe78f Enable multiply tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4505 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-02 20:28:47 +00:00
Chris Lattner
d04b51d447 New testcase for arithmetic operations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4504 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-02 20:13:40 +00:00
Chris Lattner
5a23ddfa17 New testcase for logical operators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4501 91177308-0d34-0410-b5e6-96231b3b80d8
2002-11-02 20:04:02 +00:00
Brian Gaeke
8e0a6bf556 A new test case that tries to generate all the different possible shift
opcodes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4478 91177308-0d34-0410-b5e6-96231b3b80d8
2002-10-31 23:05:22 +00:00