~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Mips/machineverifier.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=mipsel -verify-machineinstrs
 
2
; Make sure machine verifier understands the last instruction of a basic block
 
3
; is not the terminator instruction after delay slot filler pass is run.
 
4
 
 
5
@g = external global i32
 
6
 
 
7
define void @foo() nounwind {
 
8
entry:
 
9
  %0 = load i32, i32* @g, align 4
 
10
  %tobool = icmp eq i32 %0, 0
 
11
  br i1 %tobool, label %if.end, label %if.then
 
12
 
 
13
if.then:                                          ; preds = %entry
 
14
  %add = add nsw i32 %0, 10
 
15
  store i32 %add, i32* @g, align 4
 
16
  br label %if.end
 
17
 
 
18
if.end:                                           ; preds = %entry, %if.then
 
19
  ret void
 
20
}
 
21