[llvm] 46e77eb - [RISCV][NFC] Ensure files end with newline. (#154457)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 02:18:19 PDT 2025


Author: Link
Date: 2025-08-20T17:18:16+08:00
New Revision: 46e77ebf71af8687ed75ba38cc583ecc08420eff

URL: https://github.com/llvm/llvm-project/commit/46e77ebf71af8687ed75ba38cc583ecc08420eff
DIFF: https://github.com/llvm/llvm-project/commit/46e77ebf71af8687ed75ba38cc583ecc08420eff.diff

LOG: [RISCV][NFC] Ensure files end with newline. (#154457)

Add trailing newlines to the following files to comply with POSIX
standards:
- llvm/lib/Target/RISCV/RISCVInstrInfoXSpacemiT.td
- llvm/test/MC/RISCV/xsmtvdot-invalid.s
- llvm/test/MC/RISCV/xsmtvdot-valid.s

Closes #151706

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInstrInfoXSpacemiT.td
    llvm/test/MC/RISCV/xsmtvdot-invalid.s
    llvm/test/MC/RISCV/xsmtvdot-valid.s

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrInfoXSpacemiT.td b/llvm/lib/Target/RISCV/RISCVInstrInfoXSpacemiT.td
index 995379042daa8..7e98698d24177 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoXSpacemiT.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoXSpacemiT.td
@@ -136,4 +136,4 @@ def SMT_VMADOT3U  : RVInstSMTVDotSlide<SMT_VDot_Slide3, SMT_VDot_UU, "smt.vmadot
 def SMT_VMADOT3SU : RVInstSMTVDotSlide<SMT_VDot_Slide3, SMT_VDot_SU, "smt.vmadot3su", "$vd, $vs1, $vs2">;
 def SMT_VMADOT3US : RVInstSMTVDotSlide<SMT_VDot_Slide3, SMT_VDot_US, "smt.vmadot3us", "$vd, $vs1, $vs2">;
 }
-}
+} // DecoderNamespace = "XSMT"

diff  --git a/llvm/test/MC/RISCV/xsmtvdot-invalid.s b/llvm/test/MC/RISCV/xsmtvdot-invalid.s
index 9dce654ecc7f5..e4c48c5702888 100644
--- a/llvm/test/MC/RISCV/xsmtvdot-invalid.s
+++ b/llvm/test/MC/RISCV/xsmtvdot-invalid.s
@@ -49,4 +49,4 @@ smt.vmadot3us v2, v1, v2 # CHECK: :[[@LINE]]:19: error: invalid operand for inst
 smt.vmadot3   v1, v3, v2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
 smt.vmadot3u  v1, v3, v2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
 smt.vmadot3su v1, v3, v2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
-smt.vmadot3us v1, v3, v2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction
\ No newline at end of file
+smt.vmadot3us v1, v3, v2 # CHECK: :[[@LINE]]:15: error: invalid operand for instruction

diff  --git a/llvm/test/MC/RISCV/xsmtvdot-valid.s b/llvm/test/MC/RISCV/xsmtvdot-valid.s
index 9e66419b10e16..18df55d21d93a 100644
--- a/llvm/test/MC/RISCV/xsmtvdot-valid.s
+++ b/llvm/test/MC/RISCV/xsmtvdot-valid.s
@@ -111,4 +111,4 @@ smt.vmadot3su v12, v4, v10
 # CHECK-ENCODING: [0x2b,0x97,0xb3,0xe6]
 # CHECK-ERROR: instruction requires the following: 'XSMTVDot' (SpacemiT Vector Dot Product Extension){{$}}
 # CHECK-UNKNOWN: e6b3972b <unknown>
-smt.vmadot3us v14, v6, v11
\ No newline at end of file
+smt.vmadot3us v14, v6, v11


        


More information about the llvm-commits mailing list