[llvm] [Mips] Add the missing judgment when processing function handleMFLOSlot (PR #121463)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 01:54:58 PST 2025
================
@@ -0,0 +1,67 @@
+; RUN: llc -filetype=asm < %s -mcpu=mips2 | FileCheck %s -check-prefixes=MIPS2
+;
+; Created from the following test case (PR121463) with
+; clang -cc1 -triple mips-unknown-freebsd -target-cpu mips2 -O2 -emit-llvm test.c -o test.ll
+; int l2arc_feed_secs, l2arc_feed_min_ms, l2arc_write_interval_wrote, l2arc_write_interval_next;
+; void l2arc_write_interval() {
+; int interval;
+; if (l2arc_write_interval_wrote)
+; interval = l2arc_feed_min_ms / l2arc_feed_secs;
+; l2arc_write_interval_next = interval;
+; }
+
+target datalayout = "E-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"
+target triple = "mips-unknown-freebsd"
----------------
yingopq wrote:
OK, applied.
https://github.com/llvm/llvm-project/pull/121463
More information about the llvm-commits
mailing list