1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test
Chandler Carruth 9b73630229 Switch to a signed representation for the dynamic offsets while walking
across the uses of the alloca. It's entirely possible for negative
numbers to come up here, and in some rare cases simply doing the 2's
complement arithmetic isn't the correct decision. Notably, we can't zext
the index of the GEP. The definition of GEP is that these offsets are
sign extended or truncated to the size of the pointer, and then wrapping
2's complement arithmetic used.

This patch fixes an issue that comes up with *no* input from the
buildbots or bootstrap afaict. The only place where it manifested,
disturbingly, is Clang's own regression test suite. A reduced and
targeted collection of tests are added to cope with this. Note that I've
tried to pin down the potential cases of overflow, but may have missed
some cases. I've tried to add a few cases to test this, but its hard
because LLVM has quite limited support for >64bit constructs.

llvm-svn: 164475
2012-09-23 11:43:14 +00:00
..
Analysis BasicAA: Recognize cyclic NoAlias phis 2012-09-06 14:41:53 +00:00
Archive
Assembler
Bindings/Ocaml fix test's RUN lines 2012-09-02 15:07:25 +00:00
Bitcode BitcodeReader: Correctly insert blockaddress constant referring to a already parsed function. 2012-09-21 14:34:31 +00:00
BugPoint
CodeGen Revise test to avoid using of 'grep' 2012-09-23 02:41:47 +00:00
DebugInfo Only emit DW_AT_object_pointer if this is a definition. 2012-09-20 22:51:57 +00:00
ExecutionEngine Revert "Enable MCJIT tests on Darwin." 2012-09-06 03:24:09 +00:00
Feature Change the linker_private_weak_def_auto' linkage to linkonce_odr_auto_hide' to 2012-08-17 18:33:14 +00:00
Instrumentation [asan] add code to detect global initialization fiasco in C/C++. The sub-pass is off by default for now. Patch by Reid Watson. Note: this patch changes the interface between LLVM and compiler-rt parts of asan. The corresponding patch to compiler-rt will follow. 2012-08-21 08:24:25 +00:00
Integer
Linker
MC Fix edge cases of ARM shift operands in arith instructions. 2012-09-22 11:18:19 +00:00
Object Fix SymbolRef::getAddress implementation for ELF. The 'value' field in symbol table entry should be treated differently for relocatable and relocated files. This patch fixes symbol addresses printed by llvm-nm for executables and shared objects. 2012-09-21 07:08:08 +00:00
Other Don't do actual work inside an assert statement. Fixes PR11760! 2012-09-23 03:58:21 +00:00
Scripts
TableGen Re-work bit/bits value resolving in tblgen 2012-09-06 23:32:48 +00:00
Transforms Switch to a signed representation for the dynamic offsets while walking 2012-09-23 11:43:14 +00:00
Unit
Verifier Assert that dominates is not given a multiple edge. Finding out if we have 2012-08-17 18:21:28 +00:00
YAMLParser
CMakeLists.txt llvm/test: [CMake] Add profile_rt-shared to deps. 2012-08-29 00:37:56 +00:00
lit.cfg
lit.site.cfg.in
Makefile yet another attempt at fixing @OCAMLOPT@ for sed. 2012-09-07 09:24:13 +00:00
Makefile.tests
TestRunner.sh