[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / sme-toggle-pstateza.ll
blob3c50ab54e561e690f47917f54ad1fbbb81e6e572
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64 -mattr=+sme -verify-machineinstrs < %s | FileCheck %s
4 define void @toggle_pstate_za() {
5 ; CHECK-LABEL: toggle_pstate_za:
6 ; CHECK:       // %bb.0:
7 ; CHECK-NEXT:    smstart za
8 ; CHECK-NEXT:    smstop za
9 ; CHECK-NEXT:    ret
10   call void @llvm.aarch64.sme.za.enable()
11   call void @llvm.aarch64.sme.za.disable()
12   ret void
15 declare void @llvm.aarch64.sme.za.enable()
16 declare void @llvm.aarch64.sme.za.disable()