2015-07-18 09:49:05 +08:00
|
|
|
// RUN: %clang -### -target amdgcn--amdhsa -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
|
2019-06-14 21:39:57 +08:00
|
|
|
// RUN: %clang -### -g -target amdgcn--amdhsa -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdpal -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
|
|
|
|
// RUN: %clang -### -g -target amdgcn-amd-amdpal -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
|
|
|
|
// RUN: %clang -### -target amdgcn-mesa-mesa3d -x assembler -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=AS_LINK %s
|
|
|
|
// RUN: %clang -### -g -target amdgcn-mesa-mesa3d -mcpu=kaveri %s 2>&1 | FileCheck -check-prefix=DWARF_VER %s
|
|
|
|
|
2015-09-19 06:01:10 +08:00
|
|
|
// AS_LINK: clang{{.*}} "-cc1as"
|
2016-05-06 01:03:41 +08:00
|
|
|
// AS_LINK: ld.lld{{.*}} "-shared"
|
2016-06-01 06:47:11 +08:00
|
|
|
|
2021-07-31 03:11:49 +08:00
|
|
|
// DWARF_VER: "-dwarf-version=5"
|
2020-06-14 21:07:31 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -target amdgcn-amd-amdhsa -mcpu=gfx906 -nogpulib \
|
|
|
|
// RUN: -flto %s 2>&1 | FileCheck -check-prefix=LTO %s
|
2021-09-09 06:52:19 +08:00
|
|
|
// LTO: clang{{.*}} "-flto=full"
|
2020-06-14 21:07:31 +08:00
|
|
|
// LTO: ld.lld{{.*}}
|