mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
7c9c6ed761
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230794 91177308-0d34-0410-b5e6-96231b3b80d8
45 lines
1.5 KiB
LLVM
45 lines
1.5 KiB
LLVM
; RUN: llc < %s -march=x86 -mattr=+sse4.1,-avx | FileCheck %s
|
|
; RUN: llc < %s -march=x86 -mcpu=corei7-avx | FileCheck --check-prefix=AVX %s
|
|
|
|
; PR11674
|
|
define void @fpext_frommem(<2 x float>* %in, <2 x double>* %out) {
|
|
; CHECK-LABEL: fpext_frommem:
|
|
; AVX-LABEL: fpext_frommem:
|
|
entry:
|
|
; CHECK: cvtps2pd (%{{.+}}), %xmm{{[0-9]+}}
|
|
; AVX: vcvtps2pd (%{{.+}}), %xmm{{[0-9]+}}
|
|
%0 = load <2 x float>, <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
|
|
}
|
|
|
|
define void @fpext_frommem4(<4 x float>* %in, <4 x double>* %out) {
|
|
; CHECK-LABEL: fpext_frommem4:
|
|
; AVX-LABEL: fpext_frommem4:
|
|
entry:
|
|
; CHECK: cvtps2pd (%{{.+}}), %xmm{{[0-9]+}}
|
|
; CHECK: cvtps2pd 8(%{{.+}}), %xmm{{[0-9]+}}
|
|
; AVX: vcvtps2pd (%{{.+}}), %ymm{{[0-9]+}}
|
|
%0 = load <4 x float>, <4 x float>* %in
|
|
%1 = fpext <4 x float> %0 to <4 x double>
|
|
store <4 x double> %1, <4 x double>* %out, align 1
|
|
ret void
|
|
}
|
|
|
|
define void @fpext_frommem8(<8 x float>* %in, <8 x double>* %out) {
|
|
; CHECK-LABEL: fpext_frommem8:
|
|
; AVX-LABEL: fpext_frommem8:
|
|
entry:
|
|
; CHECK: cvtps2pd (%{{.+}}), %xmm{{[0-9]+}}
|
|
; CHECK: cvtps2pd 8(%{{.+}}), %xmm{{[0-9]+}}
|
|
; CHECK: cvtps2pd 16(%{{.+}}), %xmm{{[0-9]+}}
|
|
; CHECK: cvtps2pd 24(%{{.+}}), %xmm{{[0-9]+}}
|
|
; AVX: vcvtps2pd 16(%{{.+}}), %ymm{{[0-9]+}}
|
|
; AVX: vcvtps2pd (%{{.+}}), %ymm{{[0-9]+}}
|
|
%0 = load <8 x float>, <8 x float>* %in
|
|
%1 = fpext <8 x float> %0 to <8 x double>
|
|
store <8 x double> %1, <8 x double>* %out, align 1
|
|
ret void
|
|
}
|