[PATCH] D91642: [AArch64][SVE] Add tests for VLST -> VLAT lax conversions
Joe Ellis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 17 10:04:14 PST 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1d7abcf99e3d: [AArch64][SVE] Add tests for VLST -> VLAT lax conversions (authored by joechrisellis).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D91642/new/
https://reviews.llvm.org/D91642
Files:
clang/test/Sema/aarch64-sve-lax-vector-conversions.c
clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
Index: clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
===================================================================
--- clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
+++ clang/test/SemaCXX/aarch64-sve-lax-vector-conversions.cpp
@@ -20,6 +20,8 @@
// -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 @@
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}}
}
Index: clang/test/Sema/aarch64-sve-lax-vector-conversions.c
===================================================================
--- clang/test/Sema/aarch64-sve-lax-vector-conversions.c
+++ clang/test/Sema/aarch64-sve-lax-vector-conversions.c
@@ -20,6 +20,8 @@
// -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 @@
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}}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91642.305840.patch
Type: text/x-patch
Size: 2245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201117/c6026136/attachment.bin>
More information about the cfe-commits
mailing list