forked from OSchip/llvm-project
72 lines
2.5 KiB
ArmAsm
72 lines
2.5 KiB
ArmAsm
// RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=GFX9 %s
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// s_waitcnt
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
s_waitcnt 0
|
|
// GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(0) & expcnt(0) & lgkmcnt(0)
|
|
// GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
|
|
// GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(0), expcnt(0), lgkmcnt(0)
|
|
// GFX9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) ; encoding: [0x00,0x00,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(1)
|
|
// GFX9: s_waitcnt vmcnt(1) ; encoding: [0x71,0x0f,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(9)
|
|
// GFX9: s_waitcnt vmcnt(9) ; encoding: [0x79,0x0f,0x8c,0xbf]
|
|
|
|
s_waitcnt expcnt(2)
|
|
// GFX9: s_waitcnt expcnt(2) ; encoding: [0x2f,0xcf,0x8c,0xbf]
|
|
|
|
s_waitcnt lgkmcnt(3)
|
|
// GFX9: s_waitcnt lgkmcnt(3) ; encoding: [0x7f,0xc3,0x8c,0xbf]
|
|
|
|
s_waitcnt lgkmcnt(9)
|
|
// GFX9: s_waitcnt lgkmcnt(9) ; encoding: [0x7f,0xc9,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(0), expcnt(0)
|
|
// GFX9: s_waitcnt vmcnt(0) expcnt(0) ; encoding: [0x00,0x0f,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(15)
|
|
// GFX9: s_waitcnt vmcnt(15) ; encoding: [0x7f,0x0f,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(15) expcnt(6)
|
|
// GFX9: s_waitcnt vmcnt(15) expcnt(6) ; encoding: [0x6f,0x0f,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(15) lgkmcnt(14)
|
|
// GFX9: s_waitcnt vmcnt(15) lgkmcnt(14) ; encoding: [0x7f,0x0e,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(15) expcnt(6) lgkmcnt(14)
|
|
// GFX9: s_waitcnt vmcnt(15) expcnt(6) lgkmcnt(14) ; encoding: [0x6f,0x0e,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(31)
|
|
// GFX9: s_waitcnt vmcnt(31) ; encoding: [0x7f,0x4f,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(31) expcnt(6)
|
|
// GFX9: s_waitcnt vmcnt(31) expcnt(6) ; encoding: [0x6f,0x4f,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(31) lgkmcnt(14)
|
|
// GFX9: s_waitcnt vmcnt(31) lgkmcnt(14) ; encoding: [0x7f,0x4e,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(31) expcnt(6) lgkmcnt(14)
|
|
// GFX9: s_waitcnt vmcnt(31) expcnt(6) lgkmcnt(14) ; encoding: [0x6f,0x4e,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(62)
|
|
// GFX9: s_waitcnt vmcnt(62) ; encoding: [0x7e,0xcf,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(62) expcnt(6)
|
|
// GFX9: s_waitcnt vmcnt(62) expcnt(6) ; encoding: [0x6e,0xcf,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(62) lgkmcnt(14)
|
|
// GFX9: s_waitcnt vmcnt(62) lgkmcnt(14) ; encoding: [0x7e,0xce,0x8c,0xbf]
|
|
|
|
s_waitcnt vmcnt(62) expcnt(6) lgkmcnt(14)
|
|
// GFX9: s_waitcnt vmcnt(62) expcnt(6) lgkmcnt(14) ; encoding: [0x6e,0xce,0x8c,0xbf]
|