aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/ftest-armv6-thumb.c
blob: 02360eea2c8bdd30b263b1c28bb48f9a6dbd9dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v6_thumb_ok } */
/* { dg-options "-mthumb" } */
/* { dg-add-options arm_arch_v6 } */

#define NEED_ARM_ARCH
#define VALUE_ARM_ARCH 6

#define NEED_ARM_ARCH_ISA_ARM
#define VALUE_ARM_ARCH_ISA_ARM 1

#define NEED_ARM_ARCH_ISA_THUMB
#define VALUE_ARM_ARCH_ISA_THUMB 1

/* Not in the Thumb ISA, but does exist in Arm state.  A call to the library
   function should result in using that instruction in Arm state.  */
#define NEED_ARM_FEATURE_CLZ
#define VALUE_ARM_FEATURE_CLZ 1

#include "ftest-support.h"