69 lines · c
1/// Check handling the CPU is 64bit while ABI is O32.2/// when build for MIPS platforms.3 4/// abi-n325// RUN: %clang -### -c %s --target=mips-linux-gnu -mabi=n32 2>&1 \6// RUN: | FileCheck --check-prefix=CHECK-ABI-N32 %s7// CHECK-ABI-N32: "-target-abi" "n32"8 9/// abi-6410// RUN: %clang -### -c %s --target=mips-linux-gnu -mabi=64 2>&1 \11// RUN: | FileCheck --check-prefix=CHECK-ABI-64 %s12// CHECK-ABI-64: "-target-abi" "n64"13 14 15/// -march=mips316// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips3 2>&1 \17// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPS3 %s18// CHECK-MIPS-MIPS3: "-target-cpu" "mips3" {{.*}} "-target-abi" "o32"19 20/// -march=mips421// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips4 2>&1 \22// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPS4 %s23// CHECK-MIPS-MIPS4: "-target-cpu" "mips4" {{.*}} "-target-abi" "o32"24 25/// FIXME: MIPS V is not implemented yet.26 27/// -march=mips6428/// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips64 2>&1 \29// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPS64 %s30// CHECK-MIPS-MIPS64: "-target-cpu" "mips64" {{.*}} "-target-abi" "o32"31 32/// -march=mips64r233/// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips64r2 2>&1 \34// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPS64R2 %s35// CHECK-MIPS-MIPS64R2: "-target-cpu" "mips64r2" {{.*}} "-target-abi" "o32"36 37/// -march=mips64r638// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips64r6 2>&1 \39// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPS64R6 %s40// CHECK-MIPS-MIPS64R6: "-target-cpu" "mips64r6" {{.*}} "-target-abi" "o32"41 42 43/// mipsisa344// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips3 -mabi=32 2>&1 \45// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPSISA3 %s46// CHECK-MIPS-MIPSISA3: "-target-cpu" "mips3" {{.*}} "-target-abi" "o32"47 48/// mipsisa449// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips4 -mabi=32 2>&1 \50// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPSISA4 %s51// CHECK-MIPS-MIPSISA4: "-target-cpu" "mips4" {{.*}} "-target-abi" "o32"52 53/// FIXME: MIPS V is not implemented yet.54 55/// mipsisa6456// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips64 -mabi=32 2>&1 \57// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPSISA64 %s58// CHECK-MIPS-MIPSISA64: "-target-cpu" "mips64" {{.*}} "-target-abi" "o32"59 60/// mipsisa64r261// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips64r2 -mabi=32 2>&1 \62// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPSISA64R2 %s63// CHECK-MIPS-MIPSISA64R2: "-target-cpu" "mips64r2" {{.*}} "-target-abi" "o32"64 65/// mipsisa64r666// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips64r6 -mabi=32 2>&1 \67// RUN: | FileCheck --check-prefix=CHECK-MIPS-MIPSISA64R6 %s68// CHECK-MIPS-MIPSISA64R6: "-target-cpu" "mips64r6" {{.*}} "-target-abi" "o32"69