llvm-6502/test
Victor Hernandez 90f48e7c91 Extend getMallocArraySize() to determine the array size if the malloc argument is:
ArraySize * ElementSize
ElementSize * ArraySize
ArraySize << log2(ElementSize)
ElementSize << log2(ArraySize)

Refactor isArrayMallocHelper and delete isSafeToGetMallocArraySize, so that there is only 1 copy of the malloc array determining logic.
Update users of getMallocArraySize() to not bother calling isArrayMalloc() as well.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85421 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-28 20:18:55 +00:00
..
Analysis Convert Analysis tests to FileCheck in regards to PR5307. 2009-10-27 14:54:46 +00:00
Archive Merge Archive/extract* tests into one; this avoids a race when tests are run in 2009-09-08 23:44:24 +00:00
Assembler Adjust testcases for msasm -> alignstack. 2009-10-21 23:29:12 +00:00
Bindings/Ocaml Fix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed, 2009-10-17 23:52:26 +00:00
Bitcode Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
BugPoint Use -output-prefix in bugpoint tests so that outputs go in temp directory (and 2009-09-07 19:26:18 +00:00
CodeGen Teach MachineLICM to unfold loads from constant memory from 2009-10-28 03:21:57 +00:00
DebugInfo Reclaim a lost month. 2009-10-17 03:28:20 +00:00
ExecutionEngine Add a test for http://llvm.org/PR3043. 2009-10-05 23:51:08 +00:00
Feature add bitcode reader support for blockaddress. We can now fully 2009-10-28 05:53:48 +00:00
FrontendAda Check that accessing a struct field that occurs before the start 2009-10-22 12:53:25 +00:00
FrontendC Adjust testcases for msasm -> alignstack. 2009-10-21 23:29:12 +00:00
FrontendC++ Add radar number. 2009-10-27 20:12:38 +00:00
FrontendFortran
FrontendObjC These tests now pass. 2009-10-13 20:45:18 +00:00
FrontendObjC++
Integer Eliminate some Tclisms. 2009-09-05 11:34:46 +00:00
lib tests: Add llvm_supports_binding predicate. 2009-09-13 01:41:18 +00:00
Linker When a constant's type is refined, update the constant in place 2009-09-15 15:58:07 +00:00
LLVMC Add a test for OptionPreprocessor. 2009-10-25 01:43:50 +00:00
MC Force triple in tests. 2009-10-16 16:30:02 +00:00
Other Update these tests to match what Loop::print now prints. 2009-10-24 23:52:07 +00:00
Scripts Teach macho-dump to dump UUIDs. 2009-10-24 20:32:36 +00:00
TableGen Add some tests of advanced TableGen list functionality. 2009-06-29 20:07:17 +00:00
Transforms Extend getMallocArraySize() to determine the array size if the malloc argument is: 2009-10-28 20:18:55 +00:00
Unit Teach 'make check-lit' to run unittests. 2009-09-14 02:39:01 +00:00
Verifier Remove obsolete -f flags. 2009-08-25 15:38:29 +00:00
CMakeLists.txt Initial support for running LLVM tests from cmake. 2009-09-22 07:38:44 +00:00
lit.cfg tests: Add llvm_supports_binding predicate. 2009-09-13 01:41:18 +00:00
lit.site.cfg.in Generate lit.site.cfg from a .in file, as clang does. 2009-09-22 07:38:33 +00:00
Makefile Fix gmake check for AuroraUX triple. 2009-10-26 02:37:56 +00:00
Makefile.tests Remove obsolete -f flags. 2009-08-25 15:38:29 +00:00
site.exp.in Initial support for running LLVM tests from cmake. 2009-09-22 07:38:44 +00:00
TestRunner.sh