[clang] [llvm] [MIPS] Add MIPS i6400 and i6500 processors (PR #130587)
Mallikarjuna Gouda via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 19 04:19:40 PDT 2025
================
@@ -121,6 +121,30 @@
// MIPS-ARCH-P5600-N64: error: ABI 'n64' is not supported on CPU 'p5600'
//
// RUN: %clang --target=mips-linux-gnu -### -c %s \
+// RUN: -march=i6400 2>&1 \
+// RUN: | FileCheck -check-prefix=MIPS-ARCH-I6400 %s
+// MIPS-ARCH-I6400: "-target-cpu" "i6400"
+// MIPS-ARCH-I6400: "-target-abi" "o32"
+//
+// RUN: %clang --target=mips-linux-gnu -### -c %s \
+// RUN: -march=i6400 -mabi=64 2>&1 \
+// RUN: | FileCheck -check-prefix=MIPS-ARCH-I6400-N64 %s
+// MIPS-ARCH-I6400-N64: "-target-cpu" "i6400"
+// MIPS-ARCH-I6400-N64: "-target-abi" "n64"
+//
+// RUN: %clang --target=mips-linux-gnu -### -c %s \
+// RUN: -march=i6500 2>&1 \
+// RUN: | FileCheck -check-prefix=MIPS-ARCH-I6500 %s
+// MIPS-ARCH-I6500: "-target-cpu" "i6500"
+// MIPS-ARCH-I6500: "-target-abi" "o32"
+//
+// RUN: %clang --target=mips-linux-gnu -### -c %s \
+// RUN: -march=i6500 -mabi=64 2>&1 \
+// RUN: | FileCheck -check-prefix=MIPS-ARCH-I6500-N64 %s
+// MIPS-ARCH-I6500-N64: "-target-cpu" "i6500"
+// MIPS-ARCH-I6500-N64: "-target-abi" "n64"
+//
----------------
mgoudar wrote:
yes right. in case of mips64, default abi is n64. I have added test case for this case. thanks for catching that.
https://github.com/llvm/llvm-project/pull/130587
More information about the llvm-commits
mailing list