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
Assembler add newlines at the end of files. 2010-04-07 22:53:17 +00:00
Bindings/Ocaml
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
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
FrontendObjC++
Integer
lib
Linker
LLVMC
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
TableGen
Transforms make simplifycfg insert an llvm.trap before the 'unreachable' it introduces 2010-05-08 22:15:59 +00:00
Unit
Verifier
CMakeLists.txt
lit.cfg
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
site.exp.in
TestRunner.sh