view clang/test/Sema/arm_vfma.c @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children c4bab56944e8
line wrap: on
line source

// RUN: %clang_cc1 -triple thumbv7-none-eabi -target-feature +neon -target-feature +vfp4 -fsyntax-only -verify %s
#include <arm_neon.h>

// expected-no-diagnostics

void func(float32x2_t v2f32, float32x4_t v4f32) {
  vfma_f32(v2f32, v2f32, v2f32);
  vfmaq_f32(v4f32, v4f32, v4f32);

  vfms_f32(v2f32, v2f32, v2f32);
  vfmsq_f32(v4f32, v4f32, v4f32);
}