|
15 | 15 | __host__ int fun0() { return 0; }
|
16 | 16 | __device__ int fun0();
|
17 | 17 |
|
18 |
| -// CHECK-HOST: define dso_local noundef i32 @_Z4fun0v() |
| 18 | +// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun0{{.*}}() |
19 | 19 | // CHECK-HOST: ret i32 0
|
20 | 20 |
|
21 |
| -// CHECK-DEV: declare noundef i32 @_Z4fun0v() |
| 21 | +// CHECK-DEV: declare{{ dso_local | }}noundef i32 @{{.*}}fun0{{.*}}() |
22 | 22 |
|
23 | 23 | __device__ int fun1() { return 1; }
|
24 | 24 | __host__ int fun1() { return 2; }
|
25 | 25 |
|
26 |
| -// CHECK-HOST: define dso_local noundef i32 @_Z4fun1v() |
| 26 | +// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun1{{.*}}() |
27 | 27 | // CHECK-HOST: ret i32 2
|
28 | 28 |
|
29 |
| -// CHECK-DEV: define weak_odr noundef i32 @_Z4fun1v() |
| 29 | +// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun1{{.*}}() |
30 | 30 | // CHECK-DEV: ret i32 1
|
31 | 31 |
|
32 | 32 | __host__ __device__ int fun2() { return 3; }
|
33 | 33 |
|
34 |
| -// CHECK-HOST: define dso_local noundef i32 @_Z4fun2v() |
| 34 | +// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun2{{.*}}() |
35 | 35 | // CHECK-HOST: ret i32 3
|
36 | 36 |
|
37 |
| -// CHECK-DEV: define weak_odr noundef i32 @_Z4fun2v() |
| 37 | +// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun2{{.*}}() |
38 | 38 | // CHECK-DEV: ret i32 3
|
39 | 39 |
|
40 | 40 | __host__ int fun3() { return 4; }
|
41 | 41 |
|
42 |
| -// CHECK-HOST: define dso_local noundef i32 @_Z4fun3v() |
| 42 | +// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun3{{.*}}() |
43 | 43 | // CHECK-HOST: ret i32 4
|
44 | 44 |
|
45 |
| -// CHECK-DEV: define weak_odr noundef i32 @_Z4fun3v() |
| 45 | +// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun3{{.*}}() |
46 | 46 | // CHECK-DEV: ret i32 4
|
47 | 47 |
|
48 | 48 | __device__ int fun4() { return 6; }
|
49 | 49 | __host__ int fun4();
|
50 | 50 |
|
51 |
| -// CHECK-HOST: declare noundef i32 @_Z4fun4v() |
| 51 | +// CHECK-HOST: declare{{ dso_local | }}noundef i32 @{{.*}}fun4{{.*}}() |
52 | 52 |
|
53 |
| -// CHECK-DEV: define weak_odr noundef i32 @_Z4fun4v() |
| 53 | +// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun4{{.*}}() |
54 | 54 | // CHECK-DEV: ret i32 6
|
55 | 55 |
|
56 | 56 | __device__ int fun5() { return 5; }
|
57 | 57 |
|
58 |
| -// CHECK-HOST: define dso_local noundef i32 @_Z4fun5v() |
| 58 | +// CHECK-HOST: define dso_local noundef i32 @{{.*}}fun5{{.*}}() |
59 | 59 | // CHECK-HOST: ret i32 undef
|
60 | 60 |
|
61 |
| -// CHECK-DEV: define weak_odr noundef i32 @_Z4fun5v() |
| 61 | +// CHECK-DEV: define weak_odr{{ dso_local | }}noundef i32 @{{.*}}fun5{{.*}}() |
62 | 62 | // CHECK-DEV: ret i32 5
|
63 | 63 |
|
64 | 64 | int fun6() { return 7; }
|
65 | 65 |
|
66 |
| -// CHECK-DEV: define dso_local noundef i32 @_Z4fun6v() |
| 66 | +// CHECK-DEV: define dso_local noundef i32 @{{.*}}fun6{{.*}}() |
67 | 67 | // CHECK-DEV: ret i32 7
|
68 | 68 |
|
69 | 69 | __attribute((sycl_device)) void test() {
|
|
0 commit comments