[clang] [X86] Allow using the lzcnt intrinsics for non-LZCNT targets (PR #128284)
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 22 01:12:37 PST 2025
================
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -x c -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +lzcnt -emit-llvm -o - | FileCheck %s
-// RUN: %clang_cc1 -x c++ -std=c++11 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +lzcnt -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -x c -ffreestanding %s -triple=x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -x c++ -std=c++11 -ffreestanding %s -triple=x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
----------------
RKSimon wrote:
Add a comment explaining that these will lower correctly with/without lzcnt
https://github.com/llvm/llvm-project/pull/128284
More information about the cfe-commits
mailing list