[clang] [llvm] [mlir] [IR] Explicitly specify target feature for module asm (PR #204548)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 14:03:14 PDT 2026


================
@@ -0,0 +1,12 @@
+; RUN: llc -mtriple=riscv64-unknown-linux-gnu < %s | FileCheck %s
+
+; This should work fine, because the module asm specifies the necessary
+; target features
+
+; CHECK: fld ft0, 0(sp)
----------------
efriedma-quic wrote:

What happens if you try to pipe the output of llc into an assembler?  Do we need to print a directive to enable the "d" extension?

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


More information about the cfe-commits mailing list