2018-06-27 00:58:19 +08:00
|
|
|
# REQUIRES: amdgpu
|
2020-10-15 01:03:37 +08:00
|
|
|
# RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx802 --amdhsa-code-object-version=2 -filetype=obj %S/Inputs/amdgpu-kernel-0.s -o %t-0.o
|
|
|
|
# RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx803 --amdhsa-code-object-version=2 -filetype=obj %S/Inputs/amdgpu-kernel-1.s -o %t-1.o
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: not ld.lld -shared %t-0.o %t-1.o -o /dev/null 2>&1 | FileCheck %s
|
2017-10-25 03:05:32 +08:00
|
|
|
|
2018-02-17 06:55:36 +08:00
|
|
|
# CHECK: error: incompatible e_flags: {{.*}}-1.o
|