Skip to content

Commit a291fe5

Browse files
committed
clang/AMDGPU: Update test message order
Order of atomic expansion remarks is backwards since 100d9b8
1 parent fd13cc0 commit a291fe5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

clang/test/CodeGenOpenCL/atomics-cas-remarks-gfx90a.cl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ typedef enum memory_scope {
2626
#endif
2727
} memory_scope;
2828

29-
// REMARK: remark: A compare and swap loop was generated for an atomic fadd operation at workgroup-one-as memory scope [-Rpass=atomic-expand]
30-
// REMARK: remark: A compare and swap loop was generated for an atomic fadd operation at agent-one-as memory scope [-Rpass=atomic-expand]
31-
// REMARK: remark: A compare and swap loop was generated for an atomic fadd operation at one-as memory scope [-Rpass=atomic-expand]
3229
// REMARK: remark: A compare and swap loop was generated for an atomic fadd operation at wavefront-one-as memory scope [-Rpass=atomic-expand]
30+
// REMARK: remark: A compare and swap loop was generated for an atomic fadd operation at one-as memory scope [-Rpass=atomic-expand]
31+
// REMARK: remark: A compare and swap loop was generated for an atomic fadd operation at agent-one-as memory scope [-Rpass=atomic-expand]
32+
// REMARK: remark: A compare and swap loop was generated for an atomic fadd operation at workgroup-one-as memory scope [-Rpass=atomic-expand]
33+
3334
// GFX90A-CAS-LABEL: @atomic_cas
3435
// GFX90A-CAS: atomicrmw fadd ptr addrspace(1) {{.*}} syncscope("workgroup-one-as") monotonic
3536
// GFX90A-CAS: atomicrmw fadd ptr addrspace(1) {{.*}} syncscope("agent-one-as") monotonic

clang/test/CodeGenOpenCL/atomics-unsafe-hw-remarks-gfx90a.cl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ typedef enum memory_scope {
2727
#endif
2828
} memory_scope;
2929

30-
// GFX90A-HW-REMARK: Hardware instruction generated for atomic fadd operation at memory scope workgroup-one-as due to an unsafe request. [-Rpass=si-lower]
31-
// GFX90A-HW-REMARK: Hardware instruction generated for atomic fadd operation at memory scope agent-one-as due to an unsafe request. [-Rpass=si-lower]
3230
// GFX90A-HW-REMARK: Hardware instruction generated for atomic fadd operation at memory scope wavefront-one-as due to an unsafe request. [-Rpass=si-lower]
31+
// GFX90A-HW-REMARK: Hardware instruction generated for atomic fadd operation at memory scope agent-one-as due to an unsafe request. [-Rpass=si-lower]
32+
// GFX90A-HW-REMARK: Hardware instruction generated for atomic fadd operation at memory scope workgroup-one-as due to an unsafe request. [-Rpass=si-lower]
33+
3334
// GFX90A-HW-REMARK: global_atomic_add_f32 v0, v[0:1], v2, off glc
3435
// GFX90A-HW-REMARK: global_atomic_add_f32 v0, v[0:1], v2, off glc
3536
// GFX90A-HW-REMARK: global_atomic_add_f32 v0, v[0:1], v2, off glc

0 commit comments

Comments
 (0)