summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/nios2-cpu.c
blob: d920c5a7a2dc8a16ab304b1ee48e3a04da01bf16 (plain)
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
// RUN: %clang -target nios2--- %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck %s

// RUN: %clang -target nios2--- -mcpu=r1 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R1 %s
// RUN: %clang -target nios2--- -mcpu=nios2r1 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R1 %s
// RUN: %clang -target nios2--- -march=r1 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R1 %s
// RUN: %clang -target nios2--- -march=nios2r1 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R1 %s

// RUN: %clang -target nios2--- -mcpu=r2 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R2 %s
// RUN: %clang -target nios2--- -mcpu=nios2r2 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R2 %s
// RUN: %clang -target nios2--- -march=r2 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R2 %s
// RUN: %clang -target nios2--- -march=nios2r2 %s -### -o %t.o 2>&1 \
// RUN:   | FileCheck -check-prefix=CHECK-R2 %s

// CHECK: "-target" "nios2"
// CHECK-R1: "-target" "nios2"
// CHECK-R1: "-target-cpu" "nios2r1"
// CHECK-R2: "-target" "nios2"
// CHECK-R2: "-target-cpu" "nios2r2"
OpenPOWER on IntegriCloud