Skip to content
Snippets Groups Projects
Commit fcd50592 authored by Simon Atanasyan's avatar Simon Atanasyan
Browse files

[Driver][Mips] Check rejecting of invalid MIPS ABI names in the test.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212022 91177308-0d34-0410-b5e6-96231b3b80d8
parent f8b114f8
No related branches found
No related tags found
No related merge requests found
...@@ -3,34 +3,45 @@ ...@@ -3,34 +3,45 @@
// RUN: %clang -target mips-linux-gnu -### -c %s \ // RUN: %clang -target mips-linux-gnu -### -c %s \
// RUN: -mabi=32 2>&1 \ // RUN: -mabi=32 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-32 %s // RUN: | FileCheck -check-prefix=MIPS-ABI-32 %s
// MIPS-ABI-32: "-target-cpu" "mips32r2"
// MIPS-ABI-32: "-target-abi" "o32" // MIPS-ABI-32: "-target-abi" "o32"
// //
// RUN: %clang -target mips-linux-gnu -### -c %s \ // RUN: %clang -target mips-linux-gnu -### -c %s \
// RUN: -mabi=o32 2>&1 \ // RUN: -mabi=o32 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-O32 %s // RUN: | FileCheck -check-prefix=MIPS-ABI-O32 %s
// MIPS-ABI-O32: "-target-cpu" "mips32r2"
// MIPS-ABI-O32: "-target-abi" "o32" // MIPS-ABI-O32: "-target-abi" "o32"
// //
// RUN: %clang -target mips-linux-gnu -### -c %s \ // RUN: %clang -target mips-linux-gnu -### -c %s \
// RUN: -mabi=n32 2>&1 \ // RUN: -mabi=n32 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-N32 %s // RUN: | FileCheck -check-prefix=MIPS-ABI-N32 %s
// MIPS-ABI-N32: "-target-cpu" "mips64r2"
// MIPS-ABI-N32: "-target-abi" "n32" // MIPS-ABI-N32: "-target-abi" "n32"
// //
// RUN: %clang -target mips64-linux-gnu -### -c %s \ // RUN: %clang -target mips64-linux-gnu -### -c %s \
// RUN: -mabi=64 2>&1 \ // RUN: -mabi=64 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-64 %s // RUN: | FileCheck -check-prefix=MIPS-ABI-64 %s
// MIPS-ABI-64: "-target-cpu" "mips64r2"
// MIPS-ABI-64: "-target-abi" "n64" // MIPS-ABI-64: "-target-abi" "n64"
// //
// RUN: %clang -target mips64-linux-gnu -### -c %s \ // RUN: %clang -target mips64-linux-gnu -### -c %s \
// RUN: -mabi=n64 2>&1 \ // RUN: -mabi=n64 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-N64 %s // RUN: | FileCheck -check-prefix=MIPS-ABI-N64 %s
// MIPS-ABI-N64: "-target-cpu" "mips64r2"
// MIPS-ABI-N64: "-target-abi" "n64" // MIPS-ABI-N64: "-target-abi" "n64"
// //
// RUN: %clang -target mips64-linux-gnu -### -c %s \ // RUN: not %clang -target mips64-linux-gnu -c %s \
// RUN: -mabi=o64 2>&1 \ // RUN: -mabi=o64 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-O64 %s // RUN: | FileCheck -check-prefix=MIPS-ABI-O64 %s
// MIPS-ABI-O64: "-target-abi" "o64" // MIPS-ABI-O64: error: unknown target ABI 'o64'
// //
// RUN: %clang -target mips-linux-gnu -### -c %s \ // RUN: %clang -target mips-linux-gnu -### -c %s \
// RUN: -mabi=eabi 2>&1 \ // RUN: -mabi=eabi 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-EABI %s // RUN: | FileCheck -check-prefix=MIPS-ABI-EABI %s
// MIPS-ABI-EABI: "-target-cpu" "mips32r2"
// MIPS-ABI-EABI: "-target-abi" "eabi" // MIPS-ABI-EABI: "-target-abi" "eabi"
//
// RUN: not %clang -target mips-linux-gnu -c %s \
// RUN: -mabi=unknown 2>&1 \
// RUN: | FileCheck -check-prefix=MIPS-ABI-UNKNOWN %s
// MIPS-ABI-UNKNOWN: error: unknown target ABI 'unknown'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment