[llvm] [AArch64] Create set.fpmr intrinsic and assembly lowering (PR #114248)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 06:06:24 PST 2024
================
@@ -37,6 +37,20 @@ define void @set_fpsr(i64 %sr) {
ret void
}
+define dso_local void @set_fpmr(i64 %sr) {
+; CHECK-LABEL: set_fpmr:
+; CHECK: // %bb.0:
+; CHECK-NEXT: mrs x8, FPMR
+; CHECK-NEXT: cmp x8, x0
+; CHECK-NEXT: b.eq .LBB4_2
+; CHECK-NEXT: // %bb.1:
+; CHECK-NEXT: msr FPMR, x0
----------------
Lukacma wrote:
Changed to simple msr instrucion.
https://github.com/llvm/llvm-project/pull/114248
More information about the llvm-commits
mailing list