Skip to content

Commit fe3d765

Browse files
committed
[CodeGen][X86] Tidyup CHECKs on bitscan tests
1 parent 5cdd470 commit fe3d765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/CodeGen/X86/bitscan-builtins.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
#include <x86intrin.h>
99

1010
int test_bit_scan_forward(int a) {
11-
return _bit_scan_forward(a);
1211
// CHECK-LABEL: test_bit_scan_forward
1312
// CHECK: %[[call:.*]] = call i32 @llvm.cttz.i32(i32 %{{.*}}, i1 true)
1413
// CHECK: ret i32 %[[call]]
14+
return _bit_scan_forward(a);
1515
}
1616

1717
int test_bit_scan_reverse(int a) {
18-
return _bit_scan_reverse(a);
1918
// CHECK-LABEL: test_bit_scan_reverse
2019
// CHECK: %[[call:.*]] = call i32 @llvm.ctlz.i32(i32 %{{.*}}, i1 true)
2120
// CHECK: %[[sub:.*]] = sub nsw i32 31, %[[call]]
2221
// CHECK: ret i32 %[[sub]]
22+
return _bit_scan_reverse(a);
2323
}
2424

2525
int test__bsfd(int X) {

0 commit comments

Comments
 (0)