brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 247bd4c Raw
29 lines · c
1// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \2// RUN:  -disable-O0-optnone -emit-llvm -o - %s 2>&1 | FileCheck %s3 4// REQUIRES: aarch64-registered-target || arm-registered-target5 6#include <arm_neon.h>7 8// Check float conversion is not accepted for unsigned int argument9int8_t test_vuqaddb_s8(){10  return vuqaddb_s8(1, -1.0f);11}12 13int16_t test_vuqaddh_s16() {14  return vuqaddh_s16(1, -1.0f);15}16 17int32_t test_vuqadds_s32() {18  return vuqadds_s32(1, -1.0f);19}20 21int64_t test_vuqaddd_s64() {22  return vuqaddd_s64(1, -1.0f);23}24// CHECK: warning: implicit conversion of out of range value from 'float' to 'uint8_t' (aka 'unsigned char') is undefined25// CHECK: warning: implicit conversion of out of range value from 'float' to 'uint16_t' (aka 'unsigned short') is undefined26// CHECK: warning: implicit conversion of out of range value from 'float' to 'uint32_t' (aka 'unsigned int') is undefined27// CHECK: warning: implicit conversion of out of range value from 'float' to 'uint64_t' (aka 'unsigned long') is undefined28 29