1 // RUN: %clang -target nios2--- %s -### -o %t.o 2>&1 \
4 // RUN: %clang -target nios2--- -mcpu=r1 %s -### -o %t.o 2>&1 \
5 // RUN: | FileCheck -check-prefix=CHECK-R1 %s
6 // RUN: %clang -target nios2--- -mcpu=nios2r1 %s -### -o %t.o 2>&1 \
7 // RUN: | FileCheck -check-prefix=CHECK-R1 %s
8 // RUN: %clang -target nios2--- -march=r1 %s -### -o %t.o 2>&1 \
9 // RUN: | FileCheck -check-prefix=CHECK-R1 %s
10 // RUN: %clang -target nios2--- -march=nios2r1 %s -### -o %t.o 2>&1 \
11 // RUN: | FileCheck -check-prefix=CHECK-R1 %s
13 // RUN: %clang -target nios2--- -mcpu=r2 %s -### -o %t.o 2>&1 \
14 // RUN: | FileCheck -check-prefix=CHECK-R2 %s
15 // RUN: %clang -target nios2--- -mcpu=nios2r2 %s -### -o %t.o 2>&1 \
16 // RUN: | FileCheck -check-prefix=CHECK-R2 %s
17 // RUN: %clang -target nios2--- -march=r2 %s -### -o %t.o 2>&1 \
18 // RUN: | FileCheck -check-prefix=CHECK-R2 %s
19 // RUN: %clang -target nios2--- -march=nios2r2 %s -### -o %t.o 2>&1 \
20 // RUN: | FileCheck -check-prefix=CHECK-R2 %s
22 // CHECK: "-triple" "nios2---"
23 // CHECK-R1: "-triple" "nios2---"
24 // CHECK-R1: "-target-cpu" "nios2r1"
25 // CHECK-R2: "-triple" "nios2---"
26 // CHECK-R2: "-target-cpu" "nios2r2"