Skip to content

Commit 754ae47

Browse files
authored
[SYCLomatic][NFC] Refine lit test "mov.cu" to fix parse error "chained comparison 'X <= Y >= Z' does not behave the same as a mathematical expression" (#2789)
Signed-off-by: chenwei.sun <chenwei.sun@intel.com>
1 parent 5600e75 commit 754ae47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/dpct/asm/mov.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// CHECK-NEXT: unsigned p;
1313
// CHECK-NEXT: double d;
1414
// CHECK-NEXT: float f;
15-
// CHECK-NEXT: p = 123 * 123U + 456 * ((4 ^ 7) + 2 ^ 3) | 777 & 128U == 2 != 3 > 4 < 5 <= 3 >= 5 >> 1 << 2 && 1 || 7 && !0;
15+
// CHECK-NEXT: p = 123 * 123U + 456 * ((4 ^ 7) + 2 ^ 3);
1616
// CHECK: f = sycl::bit_cast<float>(uint32_t(0x3f800000U));
1717
// CHECK: f = sycl::bit_cast<float>(uint32_t(0x3f800000U));
1818
// CHECK: d = sycl::bit_cast<double>(uint64_t(0x40091EB851EB851FULL));
@@ -22,7 +22,7 @@ __global__ void mov() {
2222
unsigned p;
2323
double d;
2424
float f;
25-
asm ("mov.s32 %0, 123 * 123U + 456 * ((4 ^7) + 2 ^ 3) | 777 & 128U == 2 != 3 > 4 < 5 <= 3 >= 5 >> 1 << 2 && 1 || 7 && !0;" : "=r"(p) );
25+
asm ("mov.s32 %0, 123 * 123U + 456 * ((4 ^ 7) + 2 ^ 3);" : "=r"(p));
2626
asm ("mov.f32 %0, 0F3f800000;" : "=f"(f));
2727
asm ("mov.f32 %0, 0f3f800000;" : "=f"(f));
2828
asm ("mov.f64 %0, 0D40091EB851EB851F;" : "=d"(d));

0 commit comments

Comments
 (0)