]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix another issue with sve-sizeless-[12].C
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 1 Dec 2024 04:40:13 +0000 (20:40 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sun, 1 Dec 2024 04:40:13 +0000 (20:40 -0800)
There is a different error message expected on line 165 (for both files).
It was expecting:
error: cannot convert 'svint16_t' to 'sveint8_t' in initialization
But now we get:
error: cannot convert 'svint16_t' to 'signed char' in initialization

This is because we support constructing scalable vectors rather than before.

So just update error message.

Pushed as obvious after a quick test for aarch64-linux-gnu.

gcc/testsuite/ChangeLog:

* g++.dg/ext/sve-sizeless-1.C: Update error message for line 165.
* g++.dg/ext/sve-sizeless-2.C: Likewise.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/g++.dg/ext/sve-sizeless-1.C
gcc/testsuite/g++.dg/ext/sve-sizeless-2.C

index 0a5c80b92b84020bfec0f2d1d3eb31f2ea731c9d..1e00518d0e41ed9c221bc593af64cc7b84288986 100644 (file)
@@ -162,7 +162,7 @@ statements (int n)
   svint8_t init_sve_sc4 = sve_sh1; // { dg-error {cannot convert 'svint16_t' to 'svint8_t'} }
   svint8_t init_sve_sc5 = {};
   svint8_t init_sve_sc6 = { sve_sc1 };
-  svint8_t init_sve_sc7 = { sve_sh1 }; // { dg-error {cannot convert 'svint16_t' to 'svint8_t'} }
+  svint8_t init_sve_sc7 = { sve_sh1 }; // { dg-error {cannot convert 'svint16_t' to 'signed char'} }
   svint32_t init_sve_vc1 = { 0, 1 };
   svint32_t init_sve_vc2 = { 0, bar () };
   svint32_t init_sve_vc3 = { bar (), n };
index a5ee230f76a35fff6134b0ec052a8a658664e345..e6423d572f09de40b690277728c6dde22d6daede 100644 (file)
@@ -162,7 +162,7 @@ statements (int n)
   svint8_t init_sve_sc4 = sve_sh1; // { dg-error {cannot convert 'svint16_t' to 'svint8_t'} }
   svint8_t init_sve_sc5 = {};
   svint8_t init_sve_sc6 = { sve_sc1 };
-  svint8_t init_sve_sc7 = { sve_sh1 }; // { dg-error {cannot convert 'svint16_t' to 'svint8_t'} }
+  svint8_t init_sve_sc7 = { sve_sh1 }; // { dg-error {cannot convert 'svint16_t' to 'signed char'} }
   svint32_t init_sve_vc1 = { 0, 1 };
   svint32_t init_sve_vc2 = { 0, bar () };
   svint32_t init_sve_vc3 = { bar (), n };