1 ; RUN: llc -mtriple=aarch64 %s -o - | FileCheck %s 2 3 ; CHECK: test_frameindex_cmp: 4 ; CHECK: cmn sp, #{{[0-9]+}} 5 define void @test_frameindex_cmp() { 6 %stack = alloca i8 7 %stack.int = ptrtoint i8* %stack to i64 8 %cmp = icmp ne i64 %stack.int, 0 9 br i1 %cmp, label %bb1, label %bb2 10 11 bb1: 12 call void @bar() 13 ret void 14 15 bb2: 16 ret void 17 } 18 19 declare void @bar() 20