blob: fd2b46f41be52240bb9df21a366f05e0b70eeda6 [file] [log] [blame]
Simon Atanasyanc7e2a4e2013-04-21 13:30:10 +00001// Check passing Mips ABI options to the backend.
2//
3// RUN: %clang -target mips-linux-gnu -### -c %s \
4// RUN: -mabi=32 2>&1 \
5// RUN: | FileCheck -check-prefix=MIPS-ABI-32 %s
6// MIPS-ABI-32: "-target-abi" "o32"
7//
8// RUN: %clang -target mips-linux-gnu -### -c %s \
9// RUN: -mabi=o32 2>&1 \
10// RUN: | FileCheck -check-prefix=MIPS-ABI-O32 %s
11// MIPS-ABI-O32: "-target-abi" "o32"
12//
13// RUN: %clang -target mips-linux-gnu -### -c %s \
14// RUN: -mabi=n32 2>&1 \
15// RUN: | FileCheck -check-prefix=MIPS-ABI-N32 %s
16// MIPS-ABI-N32: "-target-abi" "n32"
17//
18// RUN: %clang -target mips64-linux-gnu -### -c %s \
19// RUN: -mabi=64 2>&1 \
20// RUN: | FileCheck -check-prefix=MIPS-ABI-64 %s
21// MIPS-ABI-64: "-target-abi" "n64"
22//
23// RUN: %clang -target mips64-linux-gnu -### -c %s \
24// RUN: -mabi=n64 2>&1 \
25// RUN: | FileCheck -check-prefix=MIPS-ABI-N64 %s
26// MIPS-ABI-N64: "-target-abi" "n64"
27//
28// RUN: %clang -target mips64-linux-gnu -### -c %s \
29// RUN: -mabi=o64 2>&1 \
30// RUN: | FileCheck -check-prefix=MIPS-ABI-O64 %s
31// MIPS-ABI-O64: "-target-abi" "o64"
32//
33// RUN: %clang -target mips-linux-gnu -### -c %s \
34// RUN: -mabi=eabi 2>&1 \
35// RUN: | FileCheck -check-prefix=MIPS-ABI-EABI %s
36// MIPS-ABI-EABI: "-target-abi" "eabi"