|
1 |
| -// RUN: %clang_cc1 -x c -ffreestanding %s -triple=x86_64-unknown-unknown -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECKC |
2 |
| -// RUN: %clang_cc1 -x c++ -std=c++11 -ffreestanding %s -triple=x86_64-unknown-unknown -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECKCPP |
3 |
| - |
| 1 | +// RUN: %clang_cc1 -x c -ffreestanding %s -triple=x86_64-unknown-unknown -emit-llvm -o - | FileCheck %s |
| 2 | +// RUN: %clang_cc1 -x c++ -std=c++11 -ffreestanding %s -triple=x86_64-unknown-unknown -emit-llvm -o - | FileCheck %s |
4 | 3 |
|
5 | 4 | // PR33722
|
6 |
| -// RUN: %clang_cc1 -x c -ffreestanding %s -triple x86_64-unknown-unknown -fms-extensions -fms-compatibility-version=19.00 -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECKC |
7 |
| -// RUN: %clang_cc1 -x c++ -ffreestanding %s -triple x86_64-unknown-unknown -fms-extensions -fms-compatibility-version=19.00 -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECKCPP |
| 5 | +// RUN: %clang_cc1 -x c -ffreestanding %s -triple x86_64-unknown-unknown -fms-extensions -fms-compatibility-version=19.00 -emit-llvm -o - | FileCheck %s |
| 6 | +// RUN: %clang_cc1 -x c++ -ffreestanding %s -triple x86_64-unknown-unknown -fms-extensions -fms-compatibility-version=19.00 -emit-llvm -o - | FileCheck %s |
8 | 7 |
|
9 | 8 | #include <x86intrin.h>
|
10 | 9 |
|
11 | 10 | int test_bit_scan_forward(int a) {
|
12 | 11 | return _bit_scan_forward(a);
|
13 |
| -// CHECKC-LABEL: @test_bit_scan_forward |
| 12 | +// CHECK-LABEL: test_bit_scan_forward |
14 | 13 | // CHECK: %[[call:.*]] = call i32 @llvm.cttz.i32(i32 %{{.*}}, i1 true)
|
15 | 14 | // CHECK: ret i32 %[[call]]
|
16 | 15 | }
|
17 | 16 |
|
18 | 17 | int test_bit_scan_reverse(int a) {
|
19 | 18 | return _bit_scan_reverse(a);
|
20 |
| -// CHECKC-LABEL: @test_bit_scan_reverse |
| 19 | +// CHECK-LABEL: test_bit_scan_reverse |
21 | 20 | // CHECK: %[[call:.*]] = call i32 @llvm.ctlz.i32(i32 %{{.*}}, i1 true)
|
22 | 21 | // CHECK: %[[sub:.*]] = sub nsw i32 31, %[[call]]
|
23 | 22 | // CHECK: ret i32 %[[sub]]
|
24 | 23 | }
|
25 | 24 |
|
26 | 25 | int test__bsfd(int X) {
|
27 |
| -// CHECKC-LABEL: @test__bsfd |
| 26 | +// CHECK-LABEL: test__bsfd |
28 | 27 | // CHECK: %[[call:.*]] = call i32 @llvm.cttz.i32(i32 %{{.*}}, i1 true)
|
29 | 28 | return __bsfd(X);
|
30 | 29 | }
|
31 | 30 |
|
32 | 31 | int test__bsfq(long long X) {
|
33 |
| -// CHECKC-LABEL: @test__bsfq |
| 32 | +// CHECK-LABEL: test__bsfq |
34 | 33 | // CHECK: %[[call:.*]] = call i64 @llvm.cttz.i64(i64 %{{.*}}, i1 true)
|
35 | 34 | return __bsfq(X);
|
36 | 35 | }
|
37 | 36 |
|
38 | 37 | int test__bsrd(int X) {
|
39 |
| -// CHECKC-LABEL: @test__bsrd |
| 38 | +// CHECK-LABEL: test__bsrd |
40 | 39 | // CHECK: %[[call:.*]] = call i32 @llvm.ctlz.i32(i32 %{{.*}}, i1 true)
|
41 | 40 | // CHECK: %[[sub:.*]] = sub nsw i32 31, %[[call]]
|
42 | 41 | return __bsrd(X);
|
43 | 42 | }
|
44 | 43 |
|
45 | 44 | int test__bsrq(long long X) {
|
46 |
| -// CHECKC-LABEL: @test__bsrq |
| 45 | +// CHECK-LABEL: test__bsrq |
47 | 46 | // CHECK: %[[call:.*]] = call i64 @llvm.ctlz.i64(i64 %{{.*}}, i1 true)
|
48 | 47 | // CHECK: %[[cast:.*]] = trunc i64 %[[call]] to i32
|
49 | 48 | // CHECK: %[[sub:.*]] = sub nsw i32 63, %[[cast]]
|
|
0 commit comments