[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread Phoebe Wang via cfe-commits
@@ -717,8 +717,15 @@ bool TargetInfo::validateOutputConstraint(ConstraintInfo &Info) const { if (*Name != '=' && *Name != '+') return false; - if (*Name == '+') + if (*Name == '+') { Info.setIsReadWrite(); +// To align with GCC asm: "=f" is not allowed, the +

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
https://github.com/knightXun updated https://github.com/llvm/llvm-project/pull/75208 >From 38e6bcf970d62deb5c6fa2ba33ae817d39124c6a Mon Sep 17 00:00:00 2001 From: knightXun Date: Tue, 12 Dec 2023 23:57:56 +0800 Subject: [PATCH 1/2] [clang][sema] forbid '+f' on output register to align with GCC

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
knightXun wrote: cc @phoebewang @shafik https://github.com/llvm/llvm-project/pull/75208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: flyingcat (knightXun) Changes to align with GCC asm: "+f" is not allowed to be used on output register. fix issue: https://github.com/llvm/llvm-project/issues/75019 --- Full diff: https://github.com/llvm/llvm-project/pull/75208.diff 1

[clang] [clang][sema] forbid '+f' on output register (PR #75208)

2023-12-12 Thread via cfe-commits
https://github.com/knightXun created https://github.com/llvm/llvm-project/pull/75208 to align with GCC asm: "+f" is not allowed to be used on output register. fix issue: https://github.com/llvm/llvm-project/issues/75019 >From 38e6bcf970d62deb5c6fa2ba33ae817d39124c6a Mon Sep 17 00:00:00 2001 Fr