[llvm] [GlobalISel] Lowering of {get,set,reset}_fpenv (PR #75086)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 01:19:32 PST 2024
================
@@ -0,0 +1,88 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 2
+# RUN: llc -mtriple=aarch64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s
+
+--- |
+ target triple = "aarch64-unknown-linux-gnu"
+
+ declare i64 @llvm.get.fpenv.i64()
+ declare void @llvm.set.fpenv.i64(i64)
+ declare void @llvm.reset.fpenv()
+
+ define i64 @func_get_fpenv() {
+ entry:
+ %fpenv = call i64 @llvm.get.fpenv.i64()
+ ret i64 %fpenv
+ }
+
+ define void @func_set_fpenv(i64 %fpenv) {
+ entry:
+ call void @llvm.set.fpenv.i64(i64 %fpenv)
+ ret void
+ }
+
+ define void @func_reset() {
+ entry:
+ call void @llvm.reset.fpenv()
+ ret void
+ }
+
+...
+---
+name: func_get_fpenv
+tracksRegLiveness: true
+body: |
+ bb.1.entry:
----------------
arsenm wrote:
bb.0, drop .1.entry
https://github.com/llvm/llvm-project/pull/75086
More information about the llvm-commits
mailing list