@@ -50,7 +50,7 @@ define <16 x half> @test_int_x86_avx10_vcvt2ps2phx256(<8 x float> %A, <8 x float
5050; CHECK: # %bb.0:
5151; CHECK-NEXT: vcvt2ps2phx %ymm1, %ymm0, %ymm0 # encoding: [0x62,0xf2,0x7d,0x28,0x67,0xc1]
5252; CHECK-NEXT: ret{{[l|q]}} # encoding: [0xc3]
53- %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > zeroinitializer , i16 -1 , i32 4 )
53+ %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > zeroinitializer , i16 -1 )
5454 ret <16 x half > %ret
5555}
5656
@@ -66,7 +66,7 @@ define <16 x half> @test_int_x86_avx10_vcvt2ps2phx256_mask(<16 x half> %W, i16 %
6666; X86-NEXT: kmovw {{[0-9]+}}(%esp), %k1 # encoding: [0xc5,0xf8,0x90,0x4c,0x24,0x04]
6767; X86-NEXT: vcvt2ps2phx %ymm2, %ymm1, %ymm0 {%k1} # encoding: [0x62,0xf2,0x75,0x29,0x67,0xc2]
6868; X86-NEXT: retl # encoding: [0xc3]
69- %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > %W , i16 %U , i32 4 )
69+ %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > %W , i16 %U )
7070 ret <16 x half > %ret
7171}
7272
@@ -82,52 +82,11 @@ define <16 x half> @test_int_x86_avx10_vcvt2ps2phx256_maskz(<16 x half> %W, i16
8282; X86-NEXT: kmovw {{[0-9]+}}(%esp), %k1 # encoding: [0xc5,0xf8,0x90,0x4c,0x24,0x04]
8383; X86-NEXT: vcvt2ps2phx %ymm2, %ymm1, %ymm0 {%k1} {z} # encoding: [0x62,0xf2,0x75,0xa9,0x67,0xc2]
8484; X86-NEXT: retl # encoding: [0xc3]
85- %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > zeroinitializer , i16 %U , i32 4 )
85+ %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > zeroinitializer , i16 %U )
8686 ret <16 x half > %ret
8787}
8888
89- define <16 x half > @test_int_x86_avx10_vcvt2ps2phx256_round (<8 x float > %A , <8 x float > %B ) {
90- ; CHECK-LABEL: test_int_x86_avx10_vcvt2ps2phx256_round:
91- ; CHECK: # %bb.0:
92- ; CHECK-NEXT: vcvt2ps2phx {rz-sae}, %ymm1, %ymm0, %ymm0 # encoding: [0x62,0xf2,0x79,0x78,0x67,0xc1]
93- ; CHECK-NEXT: ret{{[l|q]}} # encoding: [0xc3]
94- %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > zeroinitializer , i16 -1 , i32 11 )
95- ret <16 x half > %ret
96- }
97-
98- define <16 x half > @test_int_x86_avx10_vcvt2ps2phx256_round_mask (<16 x half > %W , i16 %U , <8 x float > %A , <8 x float > %B ) {
99- ; X64-LABEL: test_int_x86_avx10_vcvt2ps2phx256_round_mask:
100- ; X64: # %bb.0:
101- ; X64-NEXT: kmovd %edi, %k1 # encoding: [0xc5,0xfb,0x92,0xcf]
102- ; X64-NEXT: vcvt2ps2phx {rz-sae}, %ymm2, %ymm1, %ymm0 {%k1} # encoding: [0x62,0xf2,0x71,0x79,0x67,0xc2]
103- ; X64-NEXT: retq # encoding: [0xc3]
104- ;
105- ; X86-LABEL: test_int_x86_avx10_vcvt2ps2phx256_round_mask:
106- ; X86: # %bb.0:
107- ; X86-NEXT: kmovw {{[0-9]+}}(%esp), %k1 # encoding: [0xc5,0xf8,0x90,0x4c,0x24,0x04]
108- ; X86-NEXT: vcvt2ps2phx {rz-sae}, %ymm2, %ymm1, %ymm0 {%k1} # encoding: [0x62,0xf2,0x71,0x79,0x67,0xc2]
109- ; X86-NEXT: retl # encoding: [0xc3]
110- %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > %W , i16 %U , i32 11 )
111- ret <16 x half > %ret
112- }
113-
114- define <16 x half > @test_int_x86_avx10_vcvt2ps2phx256_round_maskz (i16 %U , <8 x float > %A , <8 x float > %B ) {
115- ; X64-LABEL: test_int_x86_avx10_vcvt2ps2phx256_round_maskz:
116- ; X64: # %bb.0:
117- ; X64-NEXT: kmovd %edi, %k1 # encoding: [0xc5,0xfb,0x92,0xcf]
118- ; X64-NEXT: vcvt2ps2phx {rz-sae}, %ymm1, %ymm0, %ymm0 {%k1} {z} # encoding: [0x62,0xf2,0x79,0xf9,0x67,0xc1]
119- ; X64-NEXT: retq # encoding: [0xc3]
120- ;
121- ; X86-LABEL: test_int_x86_avx10_vcvt2ps2phx256_round_maskz:
122- ; X86: # %bb.0:
123- ; X86-NEXT: kmovw {{[0-9]+}}(%esp), %k1 # encoding: [0xc5,0xf8,0x90,0x4c,0x24,0x04]
124- ; X86-NEXT: vcvt2ps2phx {rz-sae}, %ymm1, %ymm0, %ymm0 {%k1} {z} # encoding: [0x62,0xf2,0x79,0xf9,0x67,0xc1]
125- ; X86-NEXT: retl # encoding: [0xc3]
126- %ret = call <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float > %A , <8 x float > %B , <16 x half > zeroinitializer , i16 %U , i32 11 )
127- ret <16 x half > %ret
128- }
129-
130- declare <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float >, <8 x float >, <16 x half >, i16 , i32 )
89+ declare <16 x half > @llvm.x86.avx10.mask.vcvt2ps2phx.256 (<8 x float >, <8 x float >, <16 x half >, i16 )
13190
13291define <16 x i8 > @test_int_x86_avx10_vcvtbiasph2bf8128 (<16 x i8 > %A , <8 x half > %B ) nounwind {
13392; CHECK-LABEL: test_int_x86_avx10_vcvtbiasph2bf8128:
0 commit comments