1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64 %s -o - | FileCheck %s
4 define void @test_frameindex_cmp() {
5 ; CHECK-LABEL: test_frameindex_cmp:
7 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
8 ; CHECK-NEXT: .cfi_def_cfa_offset 16
9 ; CHECK-NEXT: .cfi_offset w30, -16
10 ; CHECK-NEXT: cmn sp, #12
11 ; CHECK-NEXT: b.eq .LBB0_2
12 ; CHECK-NEXT: // %bb.1: // %bb1
14 ; CHECK-NEXT: .LBB0_2: // %common.ret
15 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
18 %stack.int = ptrtoint ptr %stack to i64
19 %cmp = icmp ne i64 %stack.int, 0
20 br i1 %cmp, label %bb1, label %bb2