[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AMDGPU / s_endpgm.s
blob49b3323e7e37d8beb3220fe1ac725f3c08e7fc3e
1 // RUN: llvm-mc -arch=amdgcn %s | FileCheck -strict-whitespace %s -check-prefix=WHITESPACE
2 // RUN: llvm-mc -arch=amdgcn -show-encoding %s | FileCheck %s --check-prefix=GCN
3 // RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -filetype=obj %s | llvm-objcopy -S -K keep_symbol - | llvm-objdump -disassemble -mcpu=gfx900 - | FileCheck %s --check-prefix=BIN
5 // WHITESPACE: s_endpgm{{$}}
6 // GCN: s_endpgm ; encoding: [0x00,0x00,0x81,0xbf]
7 // BIN: s_endpgm // 000000000000: BF810000
8 s_endpgm
10 // WHITESPACE: s_endpgm{{$}}
11 // GCN: s_endpgm ; encoding: [0x00,0x00,0x81,0xbf]
12 // BIN: s_endpgm // 000000000004: BF810000
13 s_endpgm 0
15 // WHITESPACE: s_endpgm 1{{$}}
16 // GCN: s_endpgm 1 ; encoding: [0x01,0x00,0x81,0xbf]
17 // BIN: s_endpgm 1 // 000000000008: BF810001
18 s_endpgm 1