diff options
Diffstat (limited to 'llvm/test/CodeGen/Thumb2/cmp-frame.ll')
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/cmp-frame.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb2/cmp-frame.ll b/llvm/test/CodeGen/Thumb2/cmp-frame.ll new file mode 100644 index 00000000000..ceb9697ecb8 --- /dev/null +++ b/llvm/test/CodeGen/Thumb2/cmp-frame.ll @@ -0,0 +1,11 @@ +; 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 +} |

