Skip to content

Commit 63b186b

Browse files
committed
[ARM] Introduce intrinsics for MVE vrnd under strict-fp.
Similar to #169156 again, this adds intrinsics for strict-fp vrnd nodes to make sure they end up as the original instruction.
1 parent b228256 commit 63b186b

File tree

5 files changed

+563
-196
lines changed

5 files changed

+563
-196
lines changed

clang/include/clang/Basic/arm_mve.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,8 @@ let params = [s16, s32] in {
700700

701701
multiclass vrnd<IRIntBase ir_int, string suffix> {
702702
let params = T.Float in {
703-
def "": Intrinsic<Vector, (args Vector:$a), (ir_int $a)>;
703+
def "": Intrinsic<Vector, (args Vector:$a),
704+
(strictFPAlt<ir_int, IRInt<"vrint"#suffix, [Vector]>> $a)>;
704705
defm "": IntrinsicMX<Vector, (args Vector:$a, Predicate:$pred),
705706
(IRInt<"vrint"#suffix#"_predicated", [Vector, Predicate]>
706707
$a, $pred, $inactive)>;

0 commit comments

Comments
 (0)