File: mips-cpu64abi32.c

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.8-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,388 kB
  • sloc: cpp: 7,438,767; ansic: 1,393,871; asm: 1,012,926; python: 241,728; f90: 86,635; objc: 75,411; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (68 lines) | stat: -rw-r--r-- 2,804 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/// Check handling the CPU is 64bit while ABI is O32.
/// when build for MIPS platforms.

/// abi-n32
// RUN: %clang -### -c %s --target=mips-linux-gnu -mabi=n32 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-ABI-N32 %s
// CHECK-ABI-N32: "-target-abi" "n32"

/// abi-64
// RUN: %clang -### -c %s --target=mips-linux-gnu -mabi=64 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-ABI-64 %s
// CHECK-ABI-64: "-target-abi" "n64"


/// -march=mips3
// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips3 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPS3 %s
// CHECK-MIPS-MIPS3: "-target-cpu" "mips3" {{.*}} "-target-abi" "o32"

/// -march=mips4
// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips4 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPS4 %s
// CHECK-MIPS-MIPS4: "-target-cpu" "mips4" {{.*}} "-target-abi" "o32"

/// FIXME: MIPS V is not implemented yet.

/// -march=mips64
/// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips64 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPS64 %s
// CHECK-MIPS-MIPS64: "-target-cpu" "mips64" {{.*}} "-target-abi" "o32"

/// -march=mips64r2
/// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips64r2 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPS64R2 %s
// CHECK-MIPS-MIPS64R2: "-target-cpu" "mips64r2" {{.*}} "-target-abi" "o32"

/// -march=mips64r6
// RUN: %clang -### -c %s --target=mips-linux-gnu -march=mips64r6 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPS64R6 %s
// CHECK-MIPS-MIPS64R6: "-target-cpu" "mips64r6" {{.*}} "-target-abi" "o32"


/// mipsisa3
// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips3 -mabi=32 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPSISA3 %s
// CHECK-MIPS-MIPSISA3: "-target-cpu" "mips3" {{.*}} "-target-abi" "o32"

/// mipsisa4
// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips4 -mabi=32 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPSISA4 %s
// CHECK-MIPS-MIPSISA4: "-target-cpu" "mips4" {{.*}} "-target-abi" "o32"

/// FIXME: MIPS V is not implemented yet.

/// mipsisa64
// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips64 -mabi=32 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPSISA64 %s
// CHECK-MIPS-MIPSISA64: "-target-cpu" "mips64" {{.*}} "-target-abi" "o32"

/// mipsisa64r2
// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips64r2 -mabi=32 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPSISA64R2 %s
// CHECK-MIPS-MIPSISA64R2: "-target-cpu" "mips64r2" {{.*}} "-target-abi" "o32"

/// mipsisa64r6
// RUN: %clang -### -c %s --target=mips64-linux-gnu -march=mips64r6 -mabi=32 2>&1 \
// RUN:   | FileCheck --check-prefix=CHECK-MIPS-MIPSISA64R6 %s
// CHECK-MIPS-MIPSISA64R6: "-target-cpu" "mips64r6" {{.*}} "-target-abi" "o32"