~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/ARM/setcc-sentinals.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=arm-eabi -mcpu=cortex-a8 -asm-verbose=false %s -o - | FileCheck %s
 
2
 
 
3
define zeroext i1 @test0(i32 %x) nounwind {
 
4
; CHECK-LABEL: test0:
 
5
; CHECK: add [[REG:(r[0-9]+)|(lr)]], r0, #1
 
6
; CHECK-NEXT: mov r0, #0
 
7
; CHECK-NEXT: cmp [[REG]], #1
 
8
; CHECK-NEXT: movwhi r0, #1
 
9
; CHECK-NEXT: bx  lr
 
10
  %cmp1 = icmp ne i32 %x, -1
 
11
  %not.cmp = icmp ne i32 %x, 0
 
12
  %.cmp1 = and i1 %cmp1, %not.cmp
 
13
  ret i1 %.cmp1
 
14
}