[clang] [X86] Allow using the lzcnt intrinsics for non-LZCNT targets (PR #128284)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 22 03:41:42 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
----------------
phoebewang wrote:
Added in lzcntintrin.h
https://github.com/llvm/llvm-project/pull/128284
More information about the cfe-commits
mailing list