mirror of git://gcc.gnu.org/git/gcc.git
Compare commits
3 Commits
b9c253795e
...
dfb7e97dd2
Author | SHA1 | Date |
---|---|---|
![]() |
dfb7e97dd2 | |
![]() |
e1e5444ff2 | |
![]() |
6d9d969ab4 |
|
@ -281,4 +281,6 @@
|
|||
#undef SUBTARGET_DRIVER_SELF_SPECS
|
||||
#define SUBTARGET_DRIVER_SELF_SPECS \
|
||||
"%{m64:-maix64} %<m64", \
|
||||
"%{m32:-maix32} %<m32"
|
||||
"%{m32:-maix32} %<m32", \
|
||||
"%{fstack-protector*: %<fstack-protector* \
|
||||
%estack-protector not supported on AIX}"
|
||||
|
|
|
@ -7752,7 +7752,9 @@ vect_transform_reduction (loop_vec_info loop_vinfo,
|
|||
assumption is not true: we use reduc_index to record the index of the
|
||||
reduction variable. */
|
||||
int reduc_index = SLP_TREE_REDUC_IDX (slp_node);
|
||||
tree vectype_in = SLP_TREE_VECTYPE (SLP_TREE_CHILDREN (slp_node)[0]);
|
||||
tree vectype_in = SLP_TREE_VECTYPE (slp_node);
|
||||
if (lane_reducing_op_p (op.code))
|
||||
vectype_in = SLP_TREE_VECTYPE (SLP_TREE_CHILDREN (slp_node)[0]);
|
||||
|
||||
vec_num = vect_get_num_copies (loop_vinfo, SLP_TREE_CHILDREN (slp_node)[0]);
|
||||
|
||||
|
|
|
@ -6,3 +6,20 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx10_3_generic \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available (as this is a generic config),
|
||||
scan-offload-tree-dump will PASS - but linking fails with the
|
||||
following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1030 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1031 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1031 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1032 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1032 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1033 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1033 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1034 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1034 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1035 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1035 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1036 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,20 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx11_generic \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available (as this is a generic config),
|
||||
scan-offload-tree-dump will PASS - but linking fails with the
|
||||
following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1100 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1101 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1101 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1102 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1102 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1103 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1150 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1150 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1151 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1151 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1152 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1152 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx1153 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx1153 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -6,3 +6,20 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx9_4_generic \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available (as this is a generic config),
|
||||
scan-offload-tree-dump will PASS - but linking fails with the
|
||||
following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,20 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx9_generic \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available (as this is a generic config),
|
||||
scan-offload-tree-dump will PASS - but linking fails with the
|
||||
following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx900 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx902 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx902 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx904 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx904 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx906 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx908 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx909 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx909 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx90a \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx90c \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -6,3 +6,28 @@
|
|||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx942 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* { dg-do link { target { offload_target_amdgcn } } } */
|
||||
/* { dg-additional-options -foffload=amdgcn-amdhsa } */
|
||||
/* { dg-additional-options -foffload=-march=gfx950 } */
|
||||
/* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
|
||||
|
||||
#include "declare-variant-4.h"
|
||||
|
||||
/* { dg-final { only_for_offload_target amdgcn-amdhsa scan-offload-tree-dump "= gfx950 \\(\\);" "optimized" } } */
|
||||
|
||||
|
||||
/* This code will link nicely if the multilib for that GPU architecture
|
||||
has been build for GCC. In that case, scan-offload-tree-dump will
|
||||
PASS and the linking will yield an XPASS message due to following line: */
|
||||
|
||||
/* { dg-excess-errors "ld: error: unable to find library -lgomp|gcn mkoffload: fatal error" } */
|
||||
|
||||
/* If the multi-lib config is not available, there are two options:
|
||||
|
||||
* If the generic multi-lib is available, mkoffload fails early,
|
||||
yielding UNRESOLVED for scan-offload-tree-dump and an XFAIL
|
||||
for the message:
|
||||
gcn mkoffload: fatal error: GCC was built without library support
|
||||
for '-march=gfx...'; consider compiling for the associated
|
||||
generic architecture '-march=gfx...-generic' instead
|
||||
|
||||
* Or compling succeeds - then scan-offload-tree-dump will PASS -
|
||||
but linking fails with the following error (XFAIL):
|
||||
ld: error: unable to find library -lgomp
|
||||
collect2: error: ld returned 1 exit status
|
||||
gcn mkoffload: fatal error: ...-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status
|
||||
compilation terminated.
|
||||
lto-wrapper: fatal error: .../amdgcn-amdhsa/mkoffload returned 1 exit status
|
||||
compilation terminated. */
|
Loading…
Reference in New Issue