blob: 2586a8c40793f1cd0792e5f21cd3f8f1bc787ce3 [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme -verify-machineinstrs < %s | FileCheck %s
define i64 @is_streaming() {
; CHECK-LABEL: is_streaming:
; CHECK: // %bb.0:
; CHECK-NEXT: mrs x8, SVCR
; CHECK-NEXT: and x0, x8, #0x1
; CHECK-NEXT: ret
%pstate = call i64 @llvm.aarch64.sme.get.pstatesm()
ret i64 %pstate
}
declare i64 @llvm.aarch64.sme.get.pstatesm()