Skip to content

Commit 1d3b2c5

Browse files
committed
[RISCV] Replace undef with poison for the XAndesVBFHCvt and XAndesVPackFPH intrinsic tests
1 parent 6033544 commit 1d3b2c5

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

llvm/test/CodeGen/RISCV/rvv/xandesvbfhcvt-vfncvt-bf16-s.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ define <vscale x 1 x bfloat> @intrinsic_vfncvt_bf16.s_nxv1bf16_nxv1f32(<vscale x
1313
; CHECK-NEXT: ret
1414
entry:
1515
%a = call <vscale x 1 x bfloat> @llvm.riscv.nds.vfncvt.bf16.s.nxv1bf16.nxv1f32(
16-
<vscale x 1 x bfloat> undef,
16+
<vscale x 1 x bfloat> poison,
1717
<vscale x 1 x float> %0,
1818
iXLen 7, iXLen %1)
1919

@@ -29,7 +29,7 @@ define <vscale x 2 x bfloat> @intrinsic_vfncvt_bf16.s_nxv2bf16_nxv2f32(<vscale x
2929
; CHECK-NEXT: ret
3030
entry:
3131
%a = call <vscale x 2 x bfloat> @llvm.riscv.nds.vfncvt.bf16.s.nxv2bf16.nxv2f32(
32-
<vscale x 2 x bfloat> undef,
32+
<vscale x 2 x bfloat> poison,
3333
<vscale x 2 x float> %0,
3434
iXLen 7, iXLen %1)
3535

@@ -45,7 +45,7 @@ define <vscale x 4 x bfloat> @intrinsic_vfncvt_bf16.s_nxv4bf16_nxv4f32(<vscale x
4545
; CHECK-NEXT: ret
4646
entry:
4747
%a = call <vscale x 4 x bfloat> @llvm.riscv.nds.vfncvt.bf16.s.nxv4bf16.nxv4f32(
48-
<vscale x 4 x bfloat> undef,
48+
<vscale x 4 x bfloat> poison,
4949
<vscale x 4 x float> %0,
5050
iXLen 7, iXLen %1)
5151

@@ -61,7 +61,7 @@ define <vscale x 8 x bfloat> @intrinsic_vfncvt_bf16.s_nxv8bf16_nxv8f32(<vscale x
6161
; CHECK-NEXT: ret
6262
entry:
6363
%a = call <vscale x 8 x bfloat> @llvm.riscv.nds.vfncvt.bf16.s.nxv8bf16.nxv8f32(
64-
<vscale x 8 x bfloat> undef,
64+
<vscale x 8 x bfloat> poison,
6565
<vscale x 8 x float> %0,
6666
iXLen 7, iXLen %1)
6767

@@ -77,7 +77,7 @@ define <vscale x 16 x bfloat> @intrinsic_vfncvt_bf16.s_nxv16bf16_nxv16f32(<vscal
7777
; CHECK-NEXT: ret
7878
entry:
7979
%a = call <vscale x 16 x bfloat> @llvm.riscv.nds.vfncvt.bf16.s.nxv16bf16.nxv16f32(
80-
<vscale x 16 x bfloat> undef,
80+
<vscale x 16 x bfloat> poison,
8181
<vscale x 16 x float> %0,
8282
iXLen 7, iXLen %1)
8383

llvm/test/CodeGen/RISCV/rvv/xandesvbfhcvt-vfwcvt-s-bf16.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ define <vscale x 1 x float> @intrinsic_vfwcvt_s.bf16_nxv1f32_nxv1bf16(<vscale x
1313
; CHECK-NEXT: ret
1414
entry:
1515
%a = call <vscale x 1 x float> @llvm.riscv.nds.vfwcvt.s.bf16.nxv1f32.nxv1bf16(
16-
<vscale x 1 x float> undef,
16+
<vscale x 1 x float> poison,
1717
<vscale x 1 x bfloat> %0,
1818
iXLen %1)
1919

@@ -29,7 +29,7 @@ define <vscale x 2 x float> @intrinsic_vfwcvt_s.bf16_nxv2f32_nxv2bf16(<vscale x
2929
; CHECK-NEXT: ret
3030
entry:
3131
%a = call <vscale x 2 x float> @llvm.riscv.nds.vfwcvt.s.bf16.nxv2f32.nxv2bf16(
32-
<vscale x 2 x float> undef,
32+
<vscale x 2 x float> poison,
3333
<vscale x 2 x bfloat> %0,
3434
iXLen %1)
3535

@@ -45,7 +45,7 @@ define <vscale x 4 x float> @intrinsic_vfwcvt_s.bf16_nxv4f32_nxv4bf16(<vscale x
4545
; CHECK-NEXT: ret
4646
entry:
4747
%a = call <vscale x 4 x float> @llvm.riscv.nds.vfwcvt.s.bf16.nxv4f32.nxv4bf16(
48-
<vscale x 4 x float> undef,
48+
<vscale x 4 x float> poison,
4949
<vscale x 4 x bfloat> %0,
5050
iXLen %1)
5151

@@ -61,7 +61,7 @@ define <vscale x 8 x float> @intrinsic_vfwcvt_s.bf16_nxv8f32_nxv8bf16(<vscale x
6161
; CHECK-NEXT: ret
6262
entry:
6363
%a = call <vscale x 8 x float> @llvm.riscv.nds.vfwcvt.s.bf16.nxv8f32.nxv8bf16(
64-
<vscale x 8 x float> undef,
64+
<vscale x 8 x float> poison,
6565
<vscale x 8 x bfloat> %0,
6666
iXLen %1)
6767

@@ -77,7 +77,7 @@ define <vscale x 16 x float> @intrinsic_vfwcvt_s.bf16_nxv16f32_nxv16bf16(<vscale
7777
; CHECK-NEXT: ret
7878
entry:
7979
%a = call <vscale x 16 x float> @llvm.riscv.nds.vfwcvt.s.bf16.nxv16f32.nxv16bf16(
80-
<vscale x 16 x float> undef,
80+
<vscale x 16 x float> poison,
8181
<vscale x 16 x bfloat> %0,
8282
iXLen %1)
8383

llvm/test/CodeGen/RISCV/rvv/xandesvpackfph-vfpmadb.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ define <vscale x 1 x half> @intrinsic_vfpmadb_vf_nxv1f16_nxv1f16_f32(<vscale x 1
1414
; CHECK-NEXT: ret
1515
entry:
1616
%a = tail call <vscale x 1 x half> @llvm.riscv.nds.vfpmadb.nxv1f16.f32(
17-
<vscale x 1 x half> undef,
17+
<vscale x 1 x half> poison,
1818
<vscale x 1 x half> %0,
1919
float %1, iXLen 0, iXLen %2)
2020

@@ -50,7 +50,7 @@ define <vscale x 2 x half> @intrinsic_vfpmadb_vf_nxv2f16_nxv2f16_f32(<vscale x 2
5050
; CHECK-NEXT: ret
5151
entry:
5252
%a = tail call <vscale x 2 x half> @llvm.riscv.nds.vfpmadb.nxv2f16.f32(
53-
<vscale x 2 x half> undef,
53+
<vscale x 2 x half> poison,
5454
<vscale x 2 x half> %0,
5555
float %1, iXLen 0, iXLen %2)
5656

@@ -86,7 +86,7 @@ define <vscale x 4 x half> @intrinsic_vfpmadb_vf_nxv4f16_nxv4f16_f32(<vscale x 4
8686
; CHECK-NEXT: ret
8787
entry:
8888
%a = tail call <vscale x 4 x half> @llvm.riscv.nds.vfpmadb.nxv4f16.f32(
89-
<vscale x 4 x half> undef,
89+
<vscale x 4 x half> poison,
9090
<vscale x 4 x half> %0,
9191
float %1, iXLen 0, iXLen %2)
9292

@@ -122,7 +122,7 @@ define <vscale x 8 x half> @intrinsic_vfpmadb_vf_nxv8f16_nxv8f16_f32(<vscale x 8
122122
; CHECK-NEXT: ret
123123
entry:
124124
%a = tail call <vscale x 8 x half> @llvm.riscv.nds.vfpmadb.nxv8f16.f32(
125-
<vscale x 8 x half> undef,
125+
<vscale x 8 x half> poison,
126126
<vscale x 8 x half> %0,
127127
float %1, iXLen 0, iXLen %2)
128128

@@ -158,7 +158,7 @@ define <vscale x 16 x half> @intrinsic_vfpmadb_vf_nxv16f16_nxv16f16_f32(<vscale
158158
; CHECK-NEXT: ret
159159
entry:
160160
%a = tail call <vscale x 16 x half> @llvm.riscv.nds.vfpmadb.nxv16f16.f32(
161-
<vscale x 16 x half> undef,
161+
<vscale x 16 x half> poison,
162162
<vscale x 16 x half> %0,
163163
float %1, iXLen 0, iXLen %2)
164164

@@ -194,7 +194,7 @@ define <vscale x 32 x half> @intrinsic_vfpmadb_vf_nxv32f16_nxv32f16_f32(<vscale
194194
; CHECK-NEXT: ret
195195
entry:
196196
%a = tail call <vscale x 32 x half> @llvm.riscv.nds.vfpmadb.nxv32f16.f32(
197-
<vscale x 32 x half> undef,
197+
<vscale x 32 x half> poison,
198198
<vscale x 32 x half> %0,
199199
float %1, iXLen 0, iXLen %2)
200200

llvm/test/CodeGen/RISCV/rvv/xandesvpackfph-vfpmadt.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ define <vscale x 1 x half> @intrinsic_vfpmadt_vf_nxv1f16_nxv1f16_f32(<vscale x 1
1414
; CHECK-NEXT: ret
1515
entry:
1616
%a = tail call <vscale x 1 x half> @llvm.riscv.nds.vfpmadt.nxv1f16.f32(
17-
<vscale x 1 x half> undef,
17+
<vscale x 1 x half> poison,
1818
<vscale x 1 x half> %0,
1919
float %1, iXLen 0, iXLen %2)
2020

@@ -50,7 +50,7 @@ define <vscale x 2 x half> @intrinsic_vfpmadt_vf_nxv2f16_nxv2f16_f32(<vscale x 2
5050
; CHECK-NEXT: ret
5151
entry:
5252
%a = tail call <vscale x 2 x half> @llvm.riscv.nds.vfpmadt.nxv2f16.f32(
53-
<vscale x 2 x half> undef,
53+
<vscale x 2 x half> poison,
5454
<vscale x 2 x half> %0,
5555
float %1, iXLen 0, iXLen %2)
5656

@@ -86,7 +86,7 @@ define <vscale x 4 x half> @intrinsic_vfpmadt_vf_nxv4f16_nxv4f16_f32(<vscale x 4
8686
; CHECK-NEXT: ret
8787
entry:
8888
%a = tail call <vscale x 4 x half> @llvm.riscv.nds.vfpmadt.nxv4f16.f32(
89-
<vscale x 4 x half> undef,
89+
<vscale x 4 x half> poison,
9090
<vscale x 4 x half> %0,
9191
float %1, iXLen 0, iXLen %2)
9292

@@ -122,7 +122,7 @@ define <vscale x 8 x half> @intrinsic_vfpmadt_vf_nxv8f16_nxv8f16_f32(<vscale x 8
122122
; CHECK-NEXT: ret
123123
entry:
124124
%a = tail call <vscale x 8 x half> @llvm.riscv.nds.vfpmadt.nxv8f16.f32(
125-
<vscale x 8 x half> undef,
125+
<vscale x 8 x half> poison,
126126
<vscale x 8 x half> %0,
127127
float %1, iXLen 0, iXLen %2)
128128

@@ -158,7 +158,7 @@ define <vscale x 16 x half> @intrinsic_vfpmadt_vf_nxv16f16_nxv16f16_f32(<vscale
158158
; CHECK-NEXT: ret
159159
entry:
160160
%a = tail call <vscale x 16 x half> @llvm.riscv.nds.vfpmadt.nxv16f16.f32(
161-
<vscale x 16 x half> undef,
161+
<vscale x 16 x half> poison,
162162
<vscale x 16 x half> %0,
163163
float %1, iXLen 0, iXLen %2)
164164

@@ -194,7 +194,7 @@ define <vscale x 32 x half> @intrinsic_vfpmadt_vf_nxv32f16_nxv32f16_f32(<vscale
194194
; CHECK-NEXT: ret
195195
entry:
196196
%a = tail call <vscale x 32 x half> @llvm.riscv.nds.vfpmadt.nxv32f16.f32(
197-
<vscale x 32 x half> undef,
197+
<vscale x 32 x half> poison,
198198
<vscale x 32 x half> %0,
199199
float %1, iXLen 0, iXLen %2)
200200

0 commit comments

Comments
 (0)