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