Debian Codegraph @

clang/test/Headers/hexagon-hvx-ieee-headers.c

raw
1 // REQUIRES: hexagon-registered-target
2
3 // RUN: %clang_cc1 -internal-isystem %S/../../lib/Headers/ \
4 // RUN: -triple hexagon-unknown-elf -target-cpu hexagonv68 \
5 // RUN: -target-feature +hvx-length128b -target-feature +hvxv68 \
6 // RUN: -target-feature +hvx-ieee-fp -emit-llvm %s -o - | FileCheck %s
7
8 // RUN: not %clang_cc1 -internal-isystem %S/../../lib/Headers/ \
9 // RUN: -triple hexagon-unknown-elf -target-cpu hexagonv68 \
10 // RUN: -target-feature +hvx-length128b -target-feature +hvxv68 \
11 // RUN: -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-ERR %s
12
13 #include <hvx_hexagon_protos.h>
14 #include <hexagon_types.h>
15
16 HVX_Vector f(HVX_Vector v) {
17 // CHECK-ERR: error: call to undeclared function 'Q6_Vhf_vabs_Vhf'
18 // CHECK: call <32 x i32> @llvm.hexagon.V6.vabs.hf.128B
19 return Q6_Vhf_vabs_Vhf(v);
20 }