File: mips-cpu64abi32.c

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (68 lines) | stat: -rw-r--r-- 2,804 bytes parent folder | download | duplicates (12)
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"