mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-27 15:29:51 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91910 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
491 B
LLVM
22 lines
491 B
LLVM
; RUN: llc < %s -march=x86-64 -mattr=+sse2 | FileCheck %s
|
|
|
|
define double @t1(float* nocapture %x) nounwind readonly ssp {
|
|
entry:
|
|
; CHECK: t1:
|
|
; CHECK: movss (%rdi), %xmm0
|
|
; CHECK; cvtss2sd %xmm0, %xmm0
|
|
|
|
%0 = load float* %x, align 4
|
|
%1 = fpext float %0 to double
|
|
ret double %1
|
|
}
|
|
|
|
define float @t2(double* nocapture %x) nounwind readonly ssp optsize {
|
|
entry:
|
|
; CHECK: t2:
|
|
; CHECK; cvtsd2ss (%rdi), %xmm0
|
|
%0 = load double* %x, align 8
|
|
%1 = fptrunc double %0 to float
|
|
ret float %1
|
|
}
|