Skip to content

Commit 08e0e29

Browse files
authored
[RISCV][clang] Add missing zvfbfmin to vget_v intrinsic (#102149)
It's missing in the patch supporting `zvfbfmin` intrinsics.
1 parent 9b06e25 commit 08e0e29

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clang/include/clang/Basic/riscv_vector.td

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,12 +2547,16 @@ let HasMasked = false, HasVL = false, IRName = "" in {
25472547
}
25482548
}] in {
25492549
foreach dst_lmul = ["(SFixedLog2LMUL:0)", "(SFixedLog2LMUL:1)", "(SFixedLog2LMUL:2)"] in {
2550-
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "vvKz", "csilxfdy", dst_lmul # "v">;
2550+
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "vvKz", "csilxfd", dst_lmul # "v">;
2551+
let RequiredFeatures = ["Zvfbfmin"] in
2552+
def : RVVBuiltin<"v" # dst_lmul # "v", dst_lmul # "vvKz", "y", dst_lmul # "v">;
25512553
def : RVVBuiltin<"Uv" # dst_lmul # "Uv", dst_lmul # "UvUvKz", "csil", dst_lmul # "Uv">;
25522554
}
25532555
foreach nf = NFList in {
25542556
defvar T = "(Tuple:" # nf # ")";
2555-
def : RVVBuiltin<T # "vv", "v" # T # "vKz", "csilxfdy", "v">;
2557+
def : RVVBuiltin<T # "vv", "v" # T # "vKz", "csilxfd", "v">;
2558+
let RequiredFeatures = ["Zvfbfmin"] in
2559+
def : RVVBuiltin<T # "vv", "v" # T # "vKz", "y", "v">;
25562560
def : RVVBuiltin<T # "UvUv", "Uv" # T # "UvKz", "csil", "Uv">;
25572561
}
25582562
}

0 commit comments

Comments
 (0)