26 lines · c
1// -----------------------------------------------------------------------------2// Tests for the hvx ieee fp feature and errors.3// -----------------------------------------------------------------------------4 5// RUN: %clang -c %s -### --target=hexagon-unknown-elf -mv68 -mhvx -mhvx-ieee-fp \6// RUN: 2>&1 | FileCheck -check-prefix=CHECK-IEEEFP %s7// RUN: %clang -c %s -### --target=hexagon-unknown-elf -mv66 -mhvx=v68 -mhvx-ieee-fp \8// RUN: 2>&1 | FileCheck -check-prefix=CHECK-IEEEFP %s9// CHECK-IEEEFP: "-target-feature" "+hvx-ieee-fp"10 11// RUN: %clang -c %s -### --target=hexagon-unknown-elf -mv68 -mhvx -mhvx-ieee-fp \12// RUN: -mno-hvx-ieee-fp 2>&1 | FileCheck -check-prefix=CHECK-NO-IEEEFP %s13// CHECK-NO-IEEEFP: "-target-feature" "-hvx-ieee-fp"14 15// IEEE-FP is valid only on hvxv68 and hvxv68+.16// RUN: not %clang -c %s -### --target=hexagon-unknown-elf -mv68 -mhvx=v66 \17// RUN: -mhvx-ieee-fp 2>&1 | FileCheck -check-prefix=CHECK-ERROR1 %s18// RUN: not %clang -c %s -### --target=hexagon-unknown-elf -mv66 -mhvx -mhvx-ieee-fp \19// RUN: 2>&1 | FileCheck -check-prefix=CHECK-ERROR1 %s20// CHECK-ERROR1: error: -mhvx-ieee-fp is not supported on HVX v6621 22// IEEE-FP is valid only if HVX is enabled.23// RUN: not %clang -c %s -### --target=hexagon-unknown-elf -mv68 -mhvx-ieee-fp \24// RUN: 2>&1 | FileCheck -check-prefix=CHECK-ERROR2 %s25// CHECK-ERROR2: error: -mhvx-ieee-fp requires HVX, use -mhvx/-mhvx= to enable it26