llvm-6502/test
Chris Lattner c7d7e0cbe0 make simplifycfg insert an llvm.trap before the 'unreachable' it introduces
when it detects undefined behavior.  llvm.trap generally codegens into some
thing really small (e.g. a 2 byte ud2 instruction on x86) and debugging this
sort of thing is "nontrivial".  For example, we now compile:

void foo() { *(int*)0 = 42; }

into:

_foo:
	pushl	%ebp
	movl	%esp, %ebp
	ud2

Some may even claim that this is a security hole, though that seems dubious
to me.  This addresses rdar://7958343 - Optimizing away null dereference 
potentially allows arbitrary code execution


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103356 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-08 22:15:59 +00:00
..
Analysis Add a comment to this test. 2010-04-26 21:37:43 +00:00
Archive fix a broken archive that was breaking dejagnu only (not lit) 2010-02-04 07:11:08 +00:00
Assembler add newlines at the end of files. 2010-04-07 22:53:17 +00:00
Bindings/Ocaml Add a LLVMWriteBitcodeToFD that exposes the raw_fd_ostream options. 2010-03-06 00:30:06 +00:00
Bitcode reapply 'reject forward references to functions whose type don't match' 2010-04-20 04:49:11 +00:00
BugPoint
CodeGen Readd testcase. 2010-05-08 04:47:54 +00:00
DebugInfo Set DW_AT_APPLE_omit_frame_ptr in endFunction() where MachineFunction is available all the time. 2010-05-04 06:15:30 +00:00
ExecutionEngine Revert r101455, which fails on the llvm-arm-linux buildbot. 2010-04-16 18:37:31 +00:00
Feature add support for zero initialized unions, patch by Tim Northover! 2010-03-29 17:36:02 +00:00
FrontendAda
FrontendC Adjust tests affected by llvm-gcc 103229. 2010-05-07 01:11:31 +00:00
FrontendC++ Revert r102948. 2010-05-03 21:51:21 +00:00
FrontendFortran
FrontendObjC Make sure this runs in 64-bit only, 32-bit won't produce the correct stores. 2010-03-25 01:46:07 +00:00
FrontendObjC++
Integer Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
lib Eliminate llvmgcc_version testing variable. 2010-02-23 07:56:28 +00:00
Linker
LLVMC XFAIL tests from LLVMC on valgrind or valgrind+leak-checking. We 2010-03-21 08:12:46 +00:00
MC Fix i386 relocations to Weak Definitions. The relocation entries should be 2010-05-07 21:44:23 +00:00
Other Add lint checks for invalid uses of memory. 2010-04-30 19:05:00 +00:00
Scripts Revert r98892. BSD systems may not have bash installed at all. 2010-03-19 00:32:11 +00:00
TableGen XFAIL a new tblgen test for memory leak checking. 2010-03-27 04:59:47 +00:00
Transforms make simplifycfg insert an llvm.trap before the 'unreachable' it introduces 2010-05-08 22:15:59 +00:00
Unit Try r96559 for the third time. This time the shared library is only built if 2010-02-25 06:34:33 +00:00
Verifier Reapply address space patch after fixing an issue in MemCopyOptimizer. 2010-04-04 03:10:48 +00:00
CMakeLists.txt Fix make check with cmake/lit 2010-03-10 18:41:59 +00:00
lit.cfg Add support for XFAILing valgrind runs with memory leak checking independently 2010-03-20 23:08:45 +00:00
lit.site.cfg.in
Makefile doh, didn't mean to check in my hackaround lit sucking. :) 2010-04-17 19:04:03 +00:00
Makefile.tests Switch .bc/.ll Makefile rules to use LLVM{CC,CXX} instead of LLVMG{CC,XX} 2010-02-23 10:28:06 +00:00
site.exp.in Eliminate llvmgcc_version testing variable. 2010-02-23 07:56:28 +00:00
TestRunner.sh