llvm.org GIT mirror llvm / 2edda52 test / CodeGen / Thumb2 / cmp-frame.ll
2edda52

Tree @2edda52 (Download .tar.gz)

cmp-frame.ll @2edda52raw · history · blame

; RUN: llc < %s | FileCheck %s

target triple = "thumbv7-linux-androideabi"

define i1 @f() {
  %a = alloca i8*
  ; CHECK: adds.w r0, sp, #0
  ; CHECK: it ne
  %cmp = icmp ne i8** %a, null
  ret i1 %cmp
}