Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / AArch64 / neon-vuqadd-float-conversion-warning.c
blob247bd4c6749a6022fb6820fcbab28ae597a3e5d5
1 // RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
2 // RUN: -disable-O0-optnone -emit-llvm -o - %s 2>&1 | FileCheck %s
4 // REQUIRES: aarch64-registered-target || arm-registered-target
6 #include <arm_neon.h>
8 // Check float conversion is not accepted for unsigned int argument
9 int8_t test_vuqaddb_s8(){
10 return vuqaddb_s8(1, -1.0f);
13 int16_t test_vuqaddh_s16() {
14 return vuqaddh_s16(1, -1.0f);
17 int32_t test_vuqadds_s32() {
18 return vuqadds_s32(1, -1.0f);
21 int64_t test_vuqaddd_s64() {
22 return vuqaddd_s64(1, -1.0f);
24 // CHECK: warning: implicit conversion of out of range value from 'float' to 'uint8_t' (aka 'unsigned char') is undefined
25 // CHECK: warning: implicit conversion of out of range value from 'float' to 'uint16_t' (aka 'unsigned short') is undefined
26 // CHECK: warning: implicit conversion of out of range value from 'float' to 'uint32_t' (aka 'unsigned int') is undefined
27 // CHECK: warning: implicit conversion of out of range value from 'float' to 'uint64_t' (aka 'unsigned long') is undefined