Skip to content

Commit c8d86a8

Browse files
authored
Revert "[SYCL] XFAIL LIT test due to duplicate diagnostic" (#1460)
This reverts commit a28778c and fixes the test. Signed-off-by: Premanand M Rao <premanand.m.rao@intel.com>
1 parent 1a5165e commit c8d86a8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

clang/test/SemaSYCL/inline-asm.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsyntax-only -verify %s -DLINUX_ASM -DSPIR_CHECK -triple spir64-unknown-unknown-sycldevice
33
// RUN: %clang_cc1 -fsycl -fsycl-is-device -fsyntax-only -verify -triple x86_64-windows -fasm-blocks %s
44

5-
// Invalid output constraint diagnistic is duplicated
6-
// XFAIL:*
7-
85
#ifndef SPIR_CHECK
96
//expected-no-diagnostics
107
#endif // SPIR_CHECK
@@ -25,7 +22,7 @@ static __inline unsigned int
2522
asm_func_2(unsigned int __leaf, unsigned long __d[]) {
2623
unsigned int __result;
2724
#ifdef SPIR_CHECK
28-
//expected-error@+2 {{invalid output constraint '=a' in asm}}
25+
//expected-error@+2 2{{invalid output constraint '=a' in asm}}
2926
__asm__("enclu"
3027
: "=a"(__result), "=b"(__d[0]), "=c"(__d[1]), "=d"(__d[2])
3128
: "a"(__leaf), "b"(__d[0]), "c"(__d[1]), "d"(__d[2])
@@ -61,7 +58,7 @@ __attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
6158
#ifdef SPIR_CHECK
6259
unsigned int i = 3;
6360
unsigned long d[4];
64-
//expected-note@+1 {{called by 'kernel_single_task'}}
61+
//expected-note@+1 2{{called by 'kernel_single_task}}
6562
asm_func_2(i, d);
6663
#endif // SPIR_CHECK
6764
#else

0 commit comments

Comments
 (0)