================
@@ -0,0 +1,76 @@
+// RUN: %clang_cc1 -x c -ffreestanding -fms-extensions \
+// RUN:   -Wno-implicit-function-declaration -fclangir \
+// RUN:   -triple x86_64-unknown-linux -emit-cir -o %t.cir %s
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+
+#ifdef __LP64__
+#define LONG int
+#else
+#define LONG long
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+unsigned char test_BitScanForward(unsigned LONG *Index, unsigned LONG Mask) {
+  return _BitScanForward(Index, Mask);
+}
+
+// CIR-LABEL: cir.func{{.*}}@test_BitScanForward
+// CIR: [[ZERO_FWD:%.*]] = cir.const #cir.int<0> : !u32i
----------------
andykaylor wrote:

Please indent the checked text so that it looks like the output in a text file. 
It's more readable that way.

https://github.com/llvm/llvm-project/pull/234304
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to