summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_fpext.ll
blob: 05b263e2e0c4fe126b3ffb0fe9d2b30cec7710a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc < %s -march=x86 -mattr=+sse41,-avx | FileCheck %s

; PR11674
define void @fpext_frommem(<2 x float>* %in, <2 x double>* %out) {
entry:
; TODO: We should be able to generate cvtps2pd for the load.
; For now, just check that we generate something sane.
; CHECK: cvtss2sd
; CHECK: cvtss2sd
  %0 = load <2 x float>* %in, align 8
  %1 = fpext <2 x float> %0 to <2 x double>
  store <2 x double> %1, <2 x double>* %out, align 1
  ret void
}