[clang] [llvm] MIPS/clang: Fix asm constraint for softfloat (PR #79116)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 26 21:42:48 PST 2024


================
@@ -0,0 +1,25 @@
+; RUN: llc  -march=mips < %s | FileCheck %s --check-prefix=MIPS32
+; RUN: llc  -march=mips64 < %s | FileCheck %s --check-prefix=MIPS64
+
+define dso_local void @read_double(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
+  %2 = load double, ptr %0, align 8
+; MIPS32-LABEL: read_double:
+; MIPS32: lw      $2, 4($4)
----------------
MaskRay wrote:

Ensure that `lw` is indented by 2 compared with `read_double:`

https://github.com/llvm/llvm-project/pull/79116


More information about the cfe-commits mailing list