• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; This tests that an empty node pointing to itself is not contracted.
2; https://code.google.com/p/nativeclient/issues/detail?id=4307
3;
4; RUN: %p2i -i %s --filetype=obj --disassemble --args -O2 \
5; RUN:   | FileCheck %s
6
7define internal void @SimpleBranch() {
8label0:
9  br label %label2
10label1:
11  br label %label1
12label2:
13  br label %label1
14}
15
16; CHECK-LABEL: SimpleBranch
17; CHECK-NEXT: jmp 0 <SimpleBranch>
18