File: mips-cpu64abi32.c

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (68 lines) | stat: -rw-r--r-- 2,804 bytes parent folder | download | duplicates (10)
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"