llvm-6502/test
Bruno Cardoso Lopes 5165ff9878 [InstSimplify] Support constant folding to vector of pointers
ConstantFolding crashes when trying to InstSimplify the following load:

@a = private unnamed_addr constant %mst {
     i8* inttoptr (i64 -1 to i8*),
     i8* inttoptr (i64 -1 to i8*)
}, align 8

%x = load <2 x i8*>* bitcast (%mst* @a to <2 x i8*>*), align 8

This patch fix this by adding support to this type of folding:

%x = load <2 x i8*>* bitcast (%mst* @a to <2 x i8*>*), align 8
==> gets folded to:
  %x = <2 x i8*> <i8* inttoptr (i64 -1 to i8*), i8* inttoptr (i64 -1 to i8*)>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220380 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-22 12:18:48 +00:00
..
Analysis
Assembler
Bindings Teach lit to filter the host LDFLAGS down from the build system and into 2014-10-21 00:36:28 +00:00
Bitcode
BugPoint
CodeGen R600/SI: Add another failing testcase for i1 copies 2014-10-22 05:30:42 +00:00
DebugInfo Fix a bit of confusion about .set and produce more readable assembly. 2014-10-21 01:17:30 +00:00
ExecutionEngine [MCJIT] Defer application of AArch64 MachO GOT relocations until resolve time. 2014-10-21 23:41:15 +00:00
Feature
FileCheck
Instrumentation [asan-asm-instrumentation] Fixed memory accesses with rbp as a base or an index register. 2014-10-21 10:22:27 +00:00
Integer
JitListener
Linker
LTO
MC [Thumb/Thumb2] Implement restrictions on SP in register list on LDM, STM variants in thumb mode 2014-10-22 10:41:14 +00:00
Object Handle spaces and quotes in file names in MRI scripts. 2014-10-22 03:10:56 +00:00
Other
TableGen
tools
Transforms [InstSimplify] Support constant folding to vector of pointers 2014-10-22 12:18:48 +00:00
Unit
Verifier Extend the verifier to validate range metadata on calls and invokes. 2014-10-20 23:52:07 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in Teach lit to filter the host LDFLAGS down from the build system and into 2014-10-21 00:36:28 +00:00
Makefile Teach lit to filter the host LDFLAGS down from the build system and into 2014-10-21 00:36:28 +00:00
Makefile.tests
TestRunner.sh