[clang] [llvm] [Driver,CodeGen] Report error when enabling 64-bit-only features on non-64-bit arch (PR #101151)

Freddy Ye via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 30 17:06:25 PDT 2024


================
@@ -248,6 +248,10 @@ void x86::getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
     Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name));
   }
 
+  llvm::StringSet<> SubFeaturesOfAPX = {"egpr", "push2pop2", "ppx", "ndd",
+                                        "ccmp", "nf",        "cf",  "zu"};
+  llvm::StringSet<> FeaturesIn64BitOnly = {"uintr"};
----------------
FreddyLeaf wrote:

```suggestion
  llvm::StringSet<> FeaturesIn64BitOnly = {"uintr", "usermsr", "cmpccxadd"};
```

https://github.com/llvm/llvm-project/pull/101151


More information about the cfe-commits mailing list