~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/MIR/llvm-ir-error-reported.mir

  • 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: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
 
2
# This test ensures an error is reported if the embedded LLVM IR contains an
 
3
# error.
 
4
 
 
5
--- |
 
6
  
 
7
  ; CHECK: [[@LINE+3]]:15: use of undefined value '%a'
 
8
  define i32 @foo(i32 %x, i32 %y) {
 
9
    %z = alloca i32, align 4
 
10
    store i32 %a, i32* %z, align 4
 
11
    br label %Test
 
12
  Test:
 
13
    %m = load i32, i32* %z, align 4
 
14
    %cond = icmp eq i32 %y, %m
 
15
    br i1 %cond, label %IfEqual, label %IfUnequal
 
16
  IfEqual:
 
17
    ret i32 1
 
18
  IfUnequal:
 
19
    ret i32 0
 
20
  }
 
21
  
 
22
...