mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
bae98b1b45
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211108 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
428 B
LLVM
13 lines
428 B
LLVM
; FIXME: Merge into fp_to_sint.ll when EG/NI supports 64-bit types
|
|
; RUN: llc < %s -march=r600 -mcpu=SI -verify-machineinstrs | FileCheck --check-prefix=SI %s
|
|
|
|
; SI-LABEL: @fp_to_sint_i64
|
|
; Check that the compiler doesn't crash with a "cannot select" error
|
|
; SI: S_ENDPGM
|
|
define void @fp_to_sint_i64 (i64 addrspace(1)* %out, float %in) {
|
|
entry:
|
|
%0 = fptosi float %in to i64
|
|
store i64 %0, i64 addrspace(1)* %out
|
|
ret void
|
|
}
|