Skip to content

Commit 0a624db

Browse files
FantasqueXlanza
authored andcommitted
[CIR] Unxfail memory effect attribute test (#1545)
Upstream commit changed behavior llvm/llvm-project@ff585fe I tested in original clang and it produced the same IR with clangir. Related: #1497
1 parent 64f01d1 commit 0a624db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/test/CIR/CodeGen/call-side-effect.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: FileCheck --input-file=%t.cir --check-prefix=CIR %s
33
// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t.ll
44
// RUN: FileCheck --input-file=%t.ll --check-prefix=LLVM %s
5-
// XFAIL: *
65

76
[[gnu::pure]] int pure_func(int x);
87
[[gnu::const]] int const_func(int x);
@@ -22,5 +21,5 @@ int test(int x) {
2221
// LLVM: %{{.+}} = call i32 @_Z9pure_funci(i32 %{{.+}}) #[[#meta_pure:]]
2322
// LLVM: %{{.+}} = call i32 @_Z10const_funci(i32 %{{.+}}) #[[#meta_const:]]
2423
// LLVM: }
25-
// LLVM: attributes #[[#meta_pure]] = { nounwind willreturn memory(read) }
24+
// LLVM: attributes #[[#meta_pure]] = { nounwind willreturn memory(read, errnomem: none) }
2625
// LLVM: attributes #[[#meta_const]] = { nounwind willreturn memory(none) }

0 commit comments

Comments
 (0)