[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AMDGPU / hsa_code_object_isa_args.s
blobb84727cf1daa987d2b6ca3ed7b7b4bcc64bd54f7
1 // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM --check-prefix=ASM_700
2 // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM --check-prefix=ASM_803
3 // RUN: llvm-mc -triple amdgcn--amdhsa -mcpu=stoney -mattr=-code-object-v3 -show-encoding %s | FileCheck %s --check-prefix=ASM --check-prefix=ASM_810
4 // RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=kaveri -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd | FileCheck %s --check-prefix=ELF --check-prefix=ELF_700
5 // RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd | FileCheck %s --check-prefix=ELF --check-prefix=ELF_803
6 // RUN: llvm-mc -filetype=obj -triple amdgcn--amdhsa -mcpu=stoney -mattr=-code-object-v3 -show-encoding %s | llvm-readobj -S --sd | FileCheck %s --check-prefix=ELF --check-prefix=ELF_810
8 // ELF: SHT_NOTE
9 // ELF: 0000: 04000000 08000000 01000000 414D4400
10 // ELF: 0010: 01000000 00000000 04000000 1B000000
11 // ELF_700: 0020: 03000000 414D4400 04000700 07000000
12 // ELF_700: 0030: 00000000 00000000 414D4400 414D4447
13 // ELF_803: 0020: 03000000 414D4400 04000700 08000000
14 // ELF_803: 0030: 00000000 03000000 414D4400 414D4447
15 // ELF_810: 0020: 03000000 414D4400 04000700 08000000
16 // ELF_810: 0030: 01000000 00000000 414D4400 414D4447
17 // ELF: 0040: 50550000
19 .hsa_code_object_version 1,0
20 // ASM: .hsa_code_object_version 1,0
22 // Test defaults
23 .hsa_code_object_isa
24 // ASM_700: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
25 // ASM_803: .hsa_code_object_isa 8,0,3,"AMD","AMDGPU"
26 // ASM_810: .hsa_code_object_isa 8,1,0,"AMD","AMDGPU"
28 // Test expressions and symbols
29 .set A,2
30 .hsa_code_object_isa A+1,A*2,A/A+4,"AMD","AMDGPU"
31 // ASM: .hsa_code_object_isa 3,4,5,"AMD","AMDGPU"