Hi,
the inline assembly "p" modifier ("An operand that is a valid memory address is 
allowed",
cf. 
https://gcc.gnu.org/onlinedocs/gcc/Simple-Constraints.html#Simple-Constraints)
is not supported on AMD GCN. This causes an ICE during the compilation of 
gcc.dg/asm-4.c.
We should skip the test for the amdgcn-*-* target.

Can I merge the patch below into trunk?

Best regards,
Frederik


2019-12-05  Frederik Harwath  <frede...@codesourcery.com>

gcc/testsuite/
        * gcc.dg/asm-4.c: Skip on target amdgcn-*-*.

Index: gcc/testsuite/gcc.dg/asm-4.c
===================================================================
--- gcc/testsuite/gcc.dg/asm-4.c        (revision 278932)
+++ gcc/testsuite/gcc.dg/asm-4.c        (working copy)
@@ -3,6 +3,7 @@

 /* "p" modifier can't be used to generate a valid memory address with ILP32.  
*/
 /* { dg-skip-if "" { aarch64*-*-* && ilp32 } } */
+/* { dg-skip-if "'p' is not supported for GCN" { amdgcn-*-* } } */

 int main()
 {

Reply via email to