bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Thumb2/cmp-frame.ll

12 lines
204 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: llc < %s | FileCheck %s
target triple = "thumbv7-linux-androideabi"
define i1 @f() {
%a = alloca ptr
; CHECK: adds.w r0, sp, #0
; CHECK: it ne
%cmp = icmp ne ptr %a, null
ret i1 %cmp
}