mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 01:10:48 +00:00
40e455d992
SI_IF and SI_ELSE are terminators which also produce a value. For these instructions ISel always inserts a COPY to move their value to another basic block. This COPY ends up between SI_(IF|ELSE) and the S_BRANCH* instruction at the end of the block. This breaks MachineBasicBlock::getFirstTerminator() and also the machine verifier which assumes that terminators are grouped together at the end of blocks. To solve this we coalesce the copy away right after ISel to make sure there are no instructions in between terminators at the end of blocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207591 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
930 B
LLVM
29 lines
930 B
LLVM
; XFAIL: *
|
|
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs< %s | FileCheck -check-prefix=SI
|
|
|
|
; SI-LABEL: @global_store_v3i64:
|
|
; SI: BUFFER_STORE_DWORDX4
|
|
; SI: BUFFER_STORE_DWORDX4
|
|
define void @global_store_v3i64(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
|
|
store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 32
|
|
ret void
|
|
}
|
|
|
|
; SI-LABEL: @global_store_v3i64_unaligned:
|
|
define void @global_store_v3i64_unaligned(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
|
|
store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 1
|
|
ret void
|
|
}
|
|
|
|
; SI-LABEL: @local_store_v3i64:
|
|
define void @local_store_v3i64(<3 x i64> addrspace(3)* %out, <3 x i64> %x) {
|
|
store <3 x i64> %x, <3 x i64> addrspace(3)* %out, align 32
|
|
ret void
|
|
}
|
|
|
|
; SI-LABEL: @local_store_v3i64_unaligned:
|
|
define void @local_store_v3i64_unaligned(<3 x i64> addrspace(1)* %out, <3 x i64> %x) {
|
|
store <3 x i64> %x, <3 x i64> addrspace(1)* %out, align 1
|
|
ret void
|
|
}
|