mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
Rename and tidy up tests
llvm-svn: 137103
This commit is contained in:
parent
1025d1eb3b
commit
81534df169
@ -1,18 +0,0 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
|
||||
|
||||
; CHECK: vcmpltps %ymm
|
||||
; CHECK-NOT: vucomiss
|
||||
define <8 x i32> @cmp00(<8 x float> %a, <8 x float> %b) nounwind readnone {
|
||||
%bincmp = fcmp olt <8 x float> %a, %b
|
||||
%s = sext <8 x i1> %bincmp to <8 x i32>
|
||||
ret <8 x i32> %s
|
||||
}
|
||||
|
||||
; CHECK: vcmpltpd %ymm
|
||||
; CHECK-NOT: vucomisd
|
||||
define <4 x i64> @cmp01(<4 x double> %a, <4 x double> %b) nounwind readnone {
|
||||
%bincmp = fcmp olt <4 x double> %a, %b
|
||||
%s = sext <4 x i1> %bincmp to <4 x i64>
|
||||
ret <4 x i64> %s
|
||||
}
|
||||
|
@ -1,21 +0,0 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
|
||||
|
||||
; CHECK: vcvtdq2ps %ymm
|
||||
define <8 x float> @funcA(<8 x i32> %a) nounwind {
|
||||
%b = sitofp <8 x i32> %a to <8 x float>
|
||||
ret <8 x float> %b
|
||||
}
|
||||
|
||||
; CHECK: vcvttps2dq %ymm
|
||||
define <8 x i32> @funcB(<8 x float> %a) nounwind {
|
||||
%b = fptosi <8 x float> %a to <8 x i32>
|
||||
ret <8 x i32> %b
|
||||
}
|
||||
|
||||
; CHECK: vcvtpd2psy %ymm
|
||||
; CHECK-NEXT: vcvtpd2psy %ymm
|
||||
; CHECK-NEXT: vinsertf128 $1
|
||||
define <8 x float> @funcC(<8 x double> %b) nounwind {
|
||||
%a = fptrunc <8 x double> %b to <8 x float>
|
||||
ret <8 x float> %a
|
||||
}
|
@ -114,3 +114,20 @@ entry:
|
||||
ret <8 x float> %div.i
|
||||
}
|
||||
|
||||
; CHECK: vsqrtss
|
||||
define float @sqrtA(float %a) nounwind uwtable readnone ssp {
|
||||
entry:
|
||||
%conv1 = tail call float @sqrtf(float %a) nounwind readnone
|
||||
ret float %conv1
|
||||
}
|
||||
|
||||
declare double @sqrt(double) readnone
|
||||
|
||||
; CHECK: vsqrtsd
|
||||
define double @sqrtB(double %a) nounwind uwtable readnone ssp {
|
||||
entry:
|
||||
%call = tail call double @sqrt(double %a) nounwind readnone
|
||||
ret double %call
|
||||
}
|
||||
|
||||
declare float @sqrtf(float) readnone
|
@ -2,8 +2,17 @@
|
||||
|
||||
@x = common global <8 x float> zeroinitializer, align 32
|
||||
@y = common global <4 x double> zeroinitializer, align 32
|
||||
@z = common global <4 x float> zeroinitializer, align 16
|
||||
|
||||
define void @zero() nounwind ssp {
|
||||
define void @zero128() nounwind ssp {
|
||||
entry:
|
||||
; CHECK: vxorps
|
||||
; CHECK: vmovaps
|
||||
store <4 x float> zeroinitializer, <4 x float>* @z, align 16
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @zero256() nounwind ssp {
|
||||
entry:
|
||||
; CHECK: vxorps
|
||||
; CHECK: vmovaps
|
@ -1,5 +1,21 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
|
||||
|
||||
; CHECK: vcmpltps %ymm
|
||||
; CHECK-NOT: vucomiss
|
||||
define <8 x i32> @cmp00(<8 x float> %a, <8 x float> %b) nounwind readnone {
|
||||
%bincmp = fcmp olt <8 x float> %a, %b
|
||||
%s = sext <8 x i1> %bincmp to <8 x i32>
|
||||
ret <8 x i32> %s
|
||||
}
|
||||
|
||||
; CHECK: vcmpltpd %ymm
|
||||
; CHECK-NOT: vucomisd
|
||||
define <4 x i64> @cmp01(<4 x double> %a, <4 x double> %b) nounwind readnone {
|
||||
%bincmp = fcmp olt <4 x double> %a, %b
|
||||
%s = sext <4 x i1> %bincmp to <4 x i64>
|
||||
ret <4 x i64> %s
|
||||
}
|
||||
|
||||
declare void @scale() nounwind uwtable
|
||||
|
||||
; CHECK: vucomisd
|
@ -1,24 +1,23 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
|
||||
|
||||
@z = common global <4 x float> zeroinitializer, align 16
|
||||
|
||||
define void @zero() nounwind ssp {
|
||||
entry:
|
||||
; CHECK: vxorps
|
||||
; CHECK: vmovaps
|
||||
store <4 x float> zeroinitializer, <4 x float>* @z, align 16
|
||||
ret void
|
||||
; CHECK: vcvtdq2ps %ymm
|
||||
define <8 x float> @sitofp00(<8 x i32> %a) nounwind {
|
||||
%b = sitofp <8 x i32> %a to <8 x float>
|
||||
ret <8 x float> %b
|
||||
}
|
||||
|
||||
define void @fpext() nounwind uwtable {
|
||||
entry:
|
||||
%f = alloca float, align 4
|
||||
%d = alloca double, align 8
|
||||
%tmp = load float* %f, align 4
|
||||
; CHECK: vcvtss2sd
|
||||
%conv = fpext float %tmp to double
|
||||
store double %conv, double* %d, align 8
|
||||
ret void
|
||||
; CHECK: vcvttps2dq %ymm
|
||||
define <8 x i32> @fptosi00(<8 x float> %a) nounwind {
|
||||
%b = fptosi <8 x float> %a to <8 x i32>
|
||||
ret <8 x i32> %b
|
||||
}
|
||||
|
||||
; CHECK: vcvtpd2psy %ymm
|
||||
; CHECK-NEXT: vcvtpd2psy %ymm
|
||||
; CHECK-NEXT: vinsertf128 $1
|
||||
define <8 x float> @fptrunc00(<8 x double> %b) nounwind {
|
||||
%a = fptrunc <8 x double> %b to <8 x float>
|
||||
ret <8 x float> %a
|
||||
}
|
||||
|
||||
; CHECK: vcvtsi2sdq (%
|
||||
@ -53,20 +52,14 @@ entry:
|
||||
ret float %conv
|
||||
}
|
||||
|
||||
; CHECK: vsqrtss
|
||||
define float @sqrtA(float %a) nounwind uwtable readnone ssp {
|
||||
; CHECK: vcvtss2sd
|
||||
define void @fpext() nounwind uwtable {
|
||||
entry:
|
||||
%conv1 = tail call float @sqrtf(float %a) nounwind readnone
|
||||
ret float %conv1
|
||||
%f = alloca float, align 4
|
||||
%d = alloca double, align 8
|
||||
%tmp = load float* %f, align 4
|
||||
%conv = fpext float %tmp to double
|
||||
store double %conv, double* %d, align 8
|
||||
ret void
|
||||
}
|
||||
|
||||
declare double @sqrt(double) readnone
|
||||
|
||||
; CHECK: vsqrtsd
|
||||
define double @sqrtB(double %a) nounwind uwtable readnone ssp {
|
||||
entry:
|
||||
%call = tail call double @sqrt(double %a) nounwind readnone
|
||||
ret double %call
|
||||
}
|
||||
|
||||
declare float @sqrtf(float) readnone
|
Loading…
x
Reference in New Issue
Block a user