We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cdd470 commit fe3d765Copy full SHA for fe3d765
clang/test/CodeGen/X86/bitscan-builtins.c
@@ -8,18 +8,18 @@
8
#include <x86intrin.h>
9
10
int test_bit_scan_forward(int a) {
11
- return _bit_scan_forward(a);
12
// CHECK-LABEL: test_bit_scan_forward
13
// CHECK: %[[call:.*]] = call i32 @llvm.cttz.i32(i32 %{{.*}}, i1 true)
14
// CHECK: ret i32 %[[call]]
+ return _bit_scan_forward(a);
15
}
16
17
int test_bit_scan_reverse(int a) {
18
- return _bit_scan_reverse(a);
19
// CHECK-LABEL: test_bit_scan_reverse
20
// CHECK: %[[call:.*]] = call i32 @llvm.ctlz.i32(i32 %{{.*}}, i1 true)
21
// CHECK: %[[sub:.*]] = sub nsw i32 31, %[[call]]
22
// CHECK: ret i32 %[[sub]]
+ return _bit_scan_reverse(a);
23
24
25
int test__bsfd(int X) {
0 commit comments