~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Thumb2/2011-06-07-TwoAddrEarlyClobber.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 -mtriple=thumbv7-apple-darwin10 -arm-atomic-cfg-tidy=0 < %s | FileCheck %s
 
2
 
 
3
%struct.op = type { %struct.op*, %struct.op*, %struct.op* ()*, i32, i16, i16, i8, i8 }
 
4
 
 
5
; CHECK: Perl_ck_sort
 
6
; CHECK: ldr
 
7
; CHECK: mov [[REGISTER:(r[0-9]+)|(lr)]]
 
8
; CHECK: str {{(r[0-9])|(lr)}}, {{\[}}[[REGISTER]]{{\]}}, #24
 
9
 
 
10
define void @Perl_ck_sort() nounwind optsize {
 
11
entry:
 
12
  %tmp27 = load %struct.op*, %struct.op** undef, align 4
 
13
  switch i16 undef, label %if.end151 [
 
14
    i16 178, label %if.then60
 
15
    i16 177, label %if.then60
 
16
  ]
 
17
 
 
18
if.then60:                                        ; preds = %if.then40
 
19
  br i1 undef, label %if.then67, label %if.end95
 
20
 
 
21
if.then67:                                        ; preds = %if.then60
 
22
  %op_next71 = getelementptr inbounds %struct.op, %struct.op* %tmp27, i32 0, i32 0
 
23
  store %struct.op* %tmp27, %struct.op** %op_next71, align 4
 
24
  %0 = getelementptr inbounds %struct.op, %struct.op* %tmp27, i32 1, i32 0
 
25
  br label %if.end95
 
26
 
 
27
if.end95:                                         ; preds = %if.else92, %if.then67
 
28
  %.pre-phi = phi %struct.op** [ undef, %if.then60 ], [ %0, %if.then67 ]
 
29
  %tmp98 = load %struct.op*, %struct.op** %.pre-phi, align 4
 
30
  br label %if.end151
 
31
 
 
32
if.end151:                                        ; preds = %if.end100, %if.end, %entry
 
33
  ret void
 
34
}