Skip to content

Commit 80bdcb0

Browse files
committed
fix Clang-format issues
Signed-off-by: Soumi Manna <[email protected]>
1 parent d394e8e commit 80bdcb0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

sycl/test/inline-asm/asm_no_operands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ int main() {
3232
asm("barrier");
3333
#endif
3434
});
35-
// clang-format on
35+
// clang-format on
3636
});
3737
}

sycl/test/inline-asm/letter_example.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int main() {
3131
// clang-format off
3232
cl::sycl::range<1>(problem_size),
3333
[=](cl::sycl::id<1> idx) [[intel::reqd_sub_group_size(16)]] {
34-
// clang-format on
34+
// clang-format on
3535
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
3636
int i = idx[0];
3737
asm volatile("{\n.decl V52 v_type=G type=d num_elts=16 align=GRF\n"
@@ -41,7 +41,9 @@ int main() {
4141
:
4242
: "rw"(&a[i]));
4343
#else
44+
// clang-format off
4445
a[idx[0]]++;
46+
// clang-format on
4547
#endif
4648
});
4749
}).wait();

sycl/test/inline-asm/malloc_shared_32.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ int main() {
5858
svm_scatter.4.1 (M1, 16) %0.0 V52.0
5959
svm_scatter.4.1 (M1, 16) %1.0 V53.0
6060
}
61-
// clang-format off
6261
)a" ::"rw"(&b[i]),
62+
// clang-format off
6363
"rw"(&b[i] + 16), "rw"(&a[i]), "rw"(&a[i] + 16), "rw"(&c[i]),
6464
"rw"(&c[i] + 16));
6565
#else
66+
// clang-format off
6667
b[i] = a[i] * c[i];
6768
#endif
6869
});
69-
7070
}).wait();
7171

7272
// clang-format on

0 commit comments

Comments
 (0)