[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AMDGPU / data.s
blob2800b672483e5dec9ebaecd1edbfc448a3a137cf
1 // We check that unrecognized opcodes are disassembled by llvm-objdump as data using the .long directive
2 // and any trailing bytes are disassembled using the .byte directive
3 // RUN: llvm-mc -filetype=obj -triple=amdgcn--amdpal -mcpu=gfx900 -show-encoding %s | llvm-objdump -disassemble -mcpu=gfx900 - | FileCheck %s
5 .text
6 v_mov_b32 v7, s24
7 v_mov_b32 v8, s25
8 .long 0xabadc0de
9 s_nop 0
10 s_endpgm
11 .long 0xabadc0d1, 0xabadc0d2, 0xabadc0d3, 0xabadc0d4
12 .byte 0x0a, 0x0b
13 .byte 0x0c
15 // CHECK: .text
16 // CHECK: v_mov_b32
17 // CHECK: v_mov_b32
18 // CHECK: .long 0xabadc0de
19 // CHECK_SAME: : ABADC0DE
20 // CHECK: s_endpgm
21 // CHECK: .long 0xabadc0d1
22 // CHECK: .long 0xabadc0d2
23 // CHECK: .long 0xabadc0d3
24 // CHECK: .long 0xabadc0d4
25 // CHECK: .byte 0x0a, 0x0b, 0x0c
26 // CHECK-SAME: : 0A 0B 0C
27 // CHECK-NOT: .long