| 1 |
! REQUIRES: aarch64-registered-target, amdgpu-registered-target |
| 2 |
|
| 3 |
! Test that invalid cpu and features are ignored. |
| 4 |
|
| 5 |
! RUN: %flang_fc1 -triple aarch64-linux-gnu -target-cpu supercpu \ |
| 6 |
! RUN: -o /dev/null -S %s 2>&1 | FileCheck %s -check-prefix=CHECK-INVALID-CPU |
| 7 |
|
| 8 |
! RUN: %flang_fc1 -triple aarch64-linux-gnu -target-feature +superspeed \ |
| 9 |
! RUN: -o /dev/null -S %s 2>&1 | FileCheck %s -check-prefix=CHECK-INVALID-FEATURE |
| 10 |
|
| 11 |
! RUN: not %flang_fc1 -triple amdgcn-amd-amdhsa -target-feature +wavefrontsize32 \ |
| 12 |
! RUN: -target-feature +wavefrontsize64 -o /dev/null -S %s 2>&1 | FileCheck %s -check-prefix=CHECK-INVALID-WAVEFRONT |
| 13 |
|
| 14 |
! CHECK-INVALID-CPU: 'supercpu' is not a recognized processor for this target (ignoring processor) |
| 15 |
! CHECK-INVALID-FEATURE: '+superspeed' is not a recognized feature for this target (ignoring feature) |
| 16 |
! CHECK-INVALID-WAVEFRONT: 'wavefrontsize32' and 'wavefrontsize64' are mutually exclusive |