mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
R600/SI: Enable inline assembly
We just needed to remove the assertion in AMDGPURegisterInfo::getFrameRegister(), which is called when initializing the parser for inline assembly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223197 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0245b12df2
commit
a4cb89023d
@ -42,8 +42,7 @@ void AMDGPURegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
|
||||
}
|
||||
|
||||
unsigned AMDGPURegisterInfo::getFrameRegister(const MachineFunction &MF) const {
|
||||
assert(!"Subroutines not supported yet");
|
||||
return 0;
|
||||
return AMDGPU::NoRegister;
|
||||
}
|
||||
|
||||
unsigned AMDGPURegisterInfo::getSubRegFromChannel(unsigned Channel) const {
|
||||
|
11
test/CodeGen/R600/inline-asm.ll
Normal file
11
test/CodeGen/R600/inline-asm.ll
Normal file
@ -0,0 +1,11 @@
|
||||
; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck %s
|
||||
|
||||
; CHECK: {{^}}inline_asm:
|
||||
; CHECK: s_endpgm
|
||||
; CHECK: s_endpgm
|
||||
define void @inline_asm(i32 addrspace(1)* %out) {
|
||||
entry:
|
||||
store i32 5, i32 addrspace(1)* %out
|
||||
call void asm sideeffect "s_endpgm", ""()
|
||||
ret void
|
||||
}
|
Loading…
Reference in New Issue
Block a user