[llvm] [LoongArch] Support ISD::SET_ROUNDING (llvm.set.rounding) (PR #206395)
Zhaoxin Yang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 01:32:01 PDT 2026
================
@@ -0,0 +1,31 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: not llc -mtriple=loongarch64 < %s 2>&1 | FileCheck %s --check-prefix=ERROR
+
+; ERROR: error: isel-set-invalid-rounding:3:3: in function foo void (): rounding mode is not supported by LoongArch hardware
+
+define void @foo() !dbg !9 {
+entry:
+ tail call void @llvm.set.rounding(i32 4), !dbg !12
+ ret void, !dbg !13
+}
+
+declare void @llvm.set.rounding(i32)
+
+!llvm.dbg.cu = !{!0}
----------------
ylzsx wrote:
Thanks for your review. Done.
https://github.com/llvm/llvm-project/pull/206395
More information about the llvm-commits
mailing list