mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
AVX-512: Added legal type MVT::i1 and VK1 register for it.
Added scalar compare VCMPSS, VCMPSD. Implemented LowerSELECT for scalar FP operations. I replaced FSETCCss, FSETCCsd with one node type FSETCCs. Node extract_vector_elt(v16i1/v8i1, idx) returns an element of type i1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,3 +20,22 @@ define <8 x i64> @select01(i32 %a, <8 x i64> %b) nounwind {
|
||||
ret <8 x i64> %res
|
||||
}
|
||||
|
||||
; CHECK-LABEL: @select02
|
||||
; CHECK: cmpless %xmm0, %xmm3, %k1
|
||||
; CHECK-NEXT: vmovss %xmm2, {{.*}}%xmm1 {%k1}
|
||||
; CHECK: ret
|
||||
define float @select02(float %a, float %b, float %c, float %eps) {
|
||||
%cmp = fcmp oge float %a, %eps
|
||||
%cond = select i1 %cmp, float %c, float %b
|
||||
ret float %cond
|
||||
}
|
||||
|
||||
; CHECK-LABEL: @select03
|
||||
; CHECK: cmplesd %xmm0, %xmm3, %k1
|
||||
; CHECK-NEXT: vmovsd %xmm2, {{.*}}%xmm1 {%k1}
|
||||
; CHECK: ret
|
||||
define double @select03(double %a, double %b, double %c, double %eps) {
|
||||
%cmp = fcmp oge double %a, %eps
|
||||
%cond = select i1 %cmp, double %c, double %b
|
||||
ret double %cond
|
||||
}
|
||||
|
Reference in New Issue
Block a user