1// RUN: not llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx700 %s 2>&1 | FileCheck %s 2// RUN: not llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 %s 2>&1 | FileCheck %s 3// RUN: not llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 %s 2>&1 | FileCheck %s 4// RUN: not llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx700 -filetype=obj %s 2>&1 | FileCheck %s 5// RUN: not llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx800 -filetype=obj %s 2>&1 | FileCheck %s 6// RUN: not llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj %s 2>&1 | FileCheck %s 7 8// CHECK: error: unknown key 'UnknownKey' 9.amd_amdgpu_hsa_metadata 10 UnknownKey: [ 2, 0 ] 11 Version: [ 1, 0 ] 12 Printf: [ '1:1:4:%d\n', '2:1:8:%g\n' ] 13 Kernels: 14 - Name: test_kernel 15 SymbolName: test_kernel@kd 16 Language: OpenCL C 17 LanguageVersion: [ 2, 0 ] 18 Args: 19 - Size: 1 20 Align: 1 21 ValueKind: ByValue 22 ValueType: I8 23 AccQual: Default 24 TypeName: char 25 - Size: 8 26 Align: 8 27 ValueKind: HiddenGlobalOffsetX 28 ValueType: I64 29 - Size: 8 30 Align: 8 31 ValueKind: HiddenGlobalOffsetY 32 ValueType: I64 33 - Size: 8 34 Align: 8 35 ValueKind: HiddenGlobalOffsetZ 36 ValueType: I64 37 - Size: 8 38 Align: 8 39 ValueKind: HiddenPrintfBuffer 40 ValueType: I8 41 AddrSpaceQual: Global 42.end_amd_amdgpu_hsa_metadata 43