~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/asm-label.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc -mtriple=x86_64-apple-darwin10 -O0 < %s | FileCheck %s
 
2
 
 
3
; test that we print a label that we use. We had a bug where
 
4
; we would print the jump, but not the label because it was considered
 
5
; a fall through.
 
6
 
 
7
; CHECK:        jmp     LBB0_9
 
8
; CHECK: LBB0_9:                                 ## %cleanup
 
9
 
 
10
define void @foo()  {
 
11
entry:
 
12
  br i1 undef, label %land.lhs.true, label %if.end11
 
13
 
 
14
land.lhs.true:                                    ; preds = %entry
 
15
  br i1 undef, label %if.then, label %if.end11
 
16
 
 
17
if.then:                                          ; preds = %land.lhs.true
 
18
  br i1 undef, label %if.then9, label %if.end
 
19
 
 
20
if.then9:                                         ; preds = %if.then
 
21
  br label %cleanup
 
22
 
 
23
if.end:                                           ; preds = %if.then
 
24
  br label %cleanup
 
25
 
 
26
cleanup:                                          ; preds = %if.end, %if.then9
 
27
  switch i32 undef, label %unreachable [
 
28
    i32 0, label %cleanup.cont
 
29
    i32 1, label %if.end11
 
30
  ]
 
31
 
 
32
cleanup.cont:                                     ; preds = %cleanup
 
33
  br label %if.end11
 
34
 
 
35
if.end11:                                         ; preds = %cleanup.cont, %cleanup, %land.lhs.true, %entry
 
36
  ret void
 
37
 
 
38
unreachable:                                      ; preds = %cleanup
 
39
  unreachable
 
40
}