llvm-6502/test
Chris Lattner fe8c7c807c teach libanalysis to fold int and fp loads from almost arbitrary
non-type-safe constant initializers.  This sort of thing happens
quite a bit for 4-byte loads out of string constants, unions, 
bitfields, and an interesting endianness check from sqlite, which
is something like this:

const int sqlite3one = 1;
# define SQLITE_BIGENDIAN    (*(char *)(&sqlite3one)==0)
# define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1)
# define SQLITE_UTF16NATIVE (SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE)

all of these macros now constant fold away.

This implements PR3152 and is based on a patch started by Eli, but heavily
modified and extended.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84936 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-23 06:23:49 +00:00
..
Analysis fix test 2009-10-18 05:03:00 +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 Update tests for 84931. 2009-10-23 05:58:34 +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 eliminate md_on_instruction.ll, md_on_instruction2.ll is a superset of it. 2009-10-19 05:34:14 +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++ This is passing on Darwin PPC. 2009-10-23 01:37:01 +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 Disallow multiple instances of PluginPriority. 2009-10-17 20:08:30 +00:00
MC Force triple in tests. 2009-10-16 16:30:02 +00:00
Other Forbid arrays of function-type and structures with function-typed fields. 2009-09-15 06:28:26 +00:00
Scripts remove notcast, it is now dead! 2009-10-13 04:27:02 +00:00
TableGen
Transforms teach libanalysis to fold int and fp loads from almost arbitrary 2009-10-23 06:23:49 +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 make rule when objdir is inside srcdir. 2009-10-02 09:30:03 +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