mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
bec5c611e1
Print in decimal for inline immediates, and hex otherwise. Use hex always for offsets in addressing offsets. This approximately matches what the shader compiler does. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206335 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
498 B
LLVM
18 lines
498 B
LLVM
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
|
|
; SI-LABEL: @infinite_loop:
|
|
; SI: V_MOV_B32_e32 [[REG:v[0-9]+]], 0x3e7
|
|
; SI: BB0_1:
|
|
; SI: BUFFER_STORE_DWORD [[REG]]
|
|
; SI: S_WAITCNT vmcnt(0) expcnt(0)
|
|
; SI: S_BRANCH BB0_1
|
|
define void @infinite_loop(i32 addrspace(1)* %out) {
|
|
entry:
|
|
br label %for.body
|
|
|
|
for.body: ; preds = %entry, %for.body
|
|
store i32 999, i32 addrspace(1)* %out, align 4
|
|
br label %for.body
|
|
}
|
|
|