[clang] 1d7abcf - [AArch64][SVE] Add tests for VLST -> VLAT lax conversions
Joe Ellis via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 17 10:04:05 PST 2020
Author: Joe Ellis
Date: 2020-11-17T18:03:42Z
New Revision: 1d7abcf99e3d8f9ac7e24be5758da7cfef656400
URL: https://github.com/llvm/llvm-project/commit/1d7abcf99e3d8f9ac7e24be5758da7cfef656400
DIFF: https://github.com/llvm/llvm-project/commit/1d7abcf99e3d8f9ac7e24be5758da7cfef656400.diff
LOG: [AArch64][SVE] Add tests for VLST -> VLAT lax conversions
These were previously missing from the SVE lax conversions tests
introduced in this commit:
23a96b84a8d985b686a4e06dec1f7aebc0cca6c6
(https://reviews.llvm.org/D91067)
Differential Revision: https://reviews.llvm.org/D91642
Added:
Modified:
clang/test/Sema/aarch64-sve-lax-vector-conversions.c
clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
Removed:
################################################################################
diff --git a/clang/test/Sema/aarch64-sve-lax-vector-conversions.c b/clang/test/Sema/aarch64-sve-lax-vector-conversions.c
index 68393275e54f..e2fe87f7dd20 100644
--- a/clang/test/Sema/aarch64-sve-lax-vector-conversions.c
+++ b/clang/test/Sema/aarch64-sve-lax-vector-conversions.c
@@ -20,6 +20,8 @@ void allowed_with_integer_lax_conversions() {
// -flax-vector-conversions={integer,all}.
fi32 = si64;
// lax-vector-none-error at -1 {{assigning to 'fixed_int32_t' (vector of 16 'int' values) from incompatible type}}
+ si64 = fi32;
+ // lax-vector-none-error at -1 {{assigning to 'svint64_t' (aka '__SVInt64_t') from incompatible type}}
}
void allowed_with_all_lax_conversions() {
@@ -31,4 +33,7 @@ void allowed_with_all_lax_conversions() {
ff32 = sf64;
// lax-vector-none-error at -1 {{assigning to 'fixed_float32_t' (vector of 16 'float' values) from incompatible type}}
// lax-vector-integer-error at -2 {{assigning to 'fixed_float32_t' (vector of 16 'float' values) from incompatible type}}
+ sf64 = ff32;
+ // lax-vector-none-error at -1 {{assigning to 'svfloat64_t' (aka '__SVFloat64_t') from incompatible type}}
+ // lax-vector-integer-error at -2 {{assigning to 'svfloat64_t' (aka '__SVFloat64_t') from incompatible type}}
}
diff --git a/clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp b/clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
index 68393275e54f..e2fe87f7dd20 100644
--- a/clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
+++ b/clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
@@ -20,6 +20,8 @@ void allowed_with_integer_lax_conversions() {
// -flax-vector-conversions={integer,all}.
fi32 = si64;
// lax-vector-none-error at -1 {{assigning to 'fixed_int32_t' (vector of 16 'int' values) from incompatible type}}
+ si64 = fi32;
+ // lax-vector-none-error at -1 {{assigning to 'svint64_t' (aka '__SVInt64_t') from incompatible type}}
}
void allowed_with_all_lax_conversions() {
@@ -31,4 +33,7 @@ void allowed_with_all_lax_conversions() {
ff32 = sf64;
// lax-vector-none-error at -1 {{assigning to 'fixed_float32_t' (vector of 16 'float' values) from incompatible type}}
// lax-vector-integer-error at -2 {{assigning to 'fixed_float32_t' (vector of 16 'float' values) from incompatible type}}
+ sf64 = ff32;
+ // lax-vector-none-error at -1 {{assigning to 'svfloat64_t' (aka '__SVFloat64_t') from incompatible type}}
+ // lax-vector-integer-error at -2 {{assigning to 'svfloat64_t' (aka '__SVFloat64_t') from incompatible type}}
}
More information about the cfe-commits
mailing list