[llvm] [RISCV] Mark symbols used in inline asm for relocations as referenced (PR #104925)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 08:24:43 PDT 2024
================
@@ -0,0 +1,96 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=riscv32 -verify-machineinstrs -no-integrated-as < %s \
+; RUN: | FileCheck -check-prefixes=RV32I %s
+; RUN: llc -mtriple=riscv64 -verify-machineinstrs -no-integrated-as < %s \
+; RUN: | FileCheck -check-prefixes=RV64I %s
+; RUN: llc -mtriple=riscv32 -code-model=medium -verify-machineinstrs -no-integrated-as < %s \
+; RUN: | FileCheck -check-prefixes=RV32I-MEDIUM %s
+; RUN: llc -mtriple=riscv64 -code-model=medium -verify-machineinstrs -no-integrated-as < %s \
+; RUN: | FileCheck -check-prefixes=RV64I-MEDIUM %s
+;
+; integrated-as fails with error: unexpected token
+; sw zero, %lo(eg)(a0) \n sw zero, %lo(eg)(a0)
----------------
topperc wrote:
Use \0A instead of \n?
https://github.com/llvm/llvm-project/pull/104925
More information about the llvm-commits
mailing list