1 // REQUIRES: mips-registered-target
2 // -mindirect-jump=hazard -mips32
3 // RUN: %clang -target mips-unknown-linux-gnu -mips32 -### -c %s \
4 // RUN: -mindirect-jump=hazard 2>&1 | FileCheck %s --check-prefix=MIPS32
5 // MIPS32: error: '-mindirect-jump=hazard' is unsupported with the 'mips32' architecture
7 // -mindirect-jump=hazard -mmicromips
8 // RUN: %clang -target mips-unknown-linux-gnu -mmicromips -### -c %s \
9 // RUN: -mindirect-jump=hazard 2>&1 | FileCheck %s --check-prefix=MICROMIPS
10 // MICROMIPS: error: '-mindirect-jump=hazard' is unsupported with the 'micromips' architecture
12 // -mindirect-jump=hazard -mips16
13 // RUN: %clang -target mips-unknown-linux-gnu -mips16 -### -c %s \
14 // RUN: -mindirect-jump=hazard 2>&1 | FileCheck %s --check-prefix=MIPS16
15 // MIPS16: error: '-mindirect-jump=hazard' is unsupported with the 'mips16' architecture
17 // RUN: %clang -target mips-unknown-linux-gnu -### -c %s \
18 // RUN: -mindirect-jump=retopline 2>&1 | FileCheck %s --check-prefix=RETOPLINE
19 // RETOPLINE: error: unknown '-mindirect-jump=' option 'retopline'
21 // RUN: %clang -target mips-unknown-linux-gnu -### -mips32 -c %s \
22 // RUN: -mindirect-jump=retopline 2>&1 | FileCheck %s --check-prefix=MIXED
23 // MIXED: error: unknown '-mindirect-jump=' option 'retopline'