summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/switch.c
Commit message (Collapse)AuthorAgeFilesLines
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-10/+10
| | | | | | tests fail. llvm-svn: 188447
* Fix a latent bug where, after emitting an expression statement, we wouldJohn McCall2011-01-121-0/+17
| | | | | | | | | | | | | | delete the block we began emitting into if it had no predecessors. We never want to do this, because there are several valid cases during statement emission where an existing block has no known predecessors but will acquire some later. The case in my test case doesn't inherently fall into this category, because we could safely emit the case-range code before the statement body, but there are examples with labels that can't be fallen into that would also demonstrate this bug. rdar://problem/8837067 llvm-svn: 123303
* Merge several tests into switch.c.Daniel Dunbar2010-04-021-0/+94
| | | | llvm-svn: 100235
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Fix some codegen tests to include positive checks.Daniel Dunbar2009-11-201-6/+21
| | | | llvm-svn: 89465
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Emit basic block for switch body; fixes PR2307.Eli Friedman2008-05-121-0/+11
| | | | llvm-svn: 50968
* use -emit-llvm-bcChris Lattner2007-12-271-1/+1
| | | | llvm-svn: 45372
* fix a couple switch codegen problems Oliver reported.Chris Lattner2007-12-011-0/+10
| | | | llvm-svn: 44484
* Support fully general case expressions, patch by Sanghyeon Seo!Chris Lattner2007-11-301-0/+2
| | | | llvm-svn: 44453
* Code gen case statement ranges.Devang Patel2007-10-081-0/+32
| | | | llvm-svn: 42766
* Support case statement ranges.Devang Patel2007-10-051-0/+15
| | | | llvm-svn: 42648
* switch statement code gen.Devang Patel2007-10-041-0/+17
llvm-svn: 42616
OpenPOWER on IntegriCloud