Skip to content

Commit 5c17a90

Browse files
committed
[CIR] Update and UnXFAIL clang/test/CIR/CodeGen/stmt-expr.c
1 parent 01e18ef commit 5c17a90

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang/test/CIR/CodeGen/stmt-expr.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// XFAIL: *
21
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
32
// RUN: FileCheck --input-file=%t.cir %s
43

@@ -24,13 +23,14 @@ void test2() { ({int x = 3; x; }); }
2423
struct S { int x; };
2524
int test3() { return ({ struct S s = {1}; s; }).x; }
2625
// CHECK: @test3
27-
// CHECK: %[[#RETVAL:]] = cir.alloca !rec_S, !cir.ptr<!rec_S>
2826
// CHECK: cir.scope {
29-
// CHECK: %[[#VAR:]] = cir.alloca !rec_S, !cir.ptr<!rec_S>
30-
// [...]
31-
// CHECK: cir.copy %[[#VAR]] to %[[#RETVAL]] : !cir.ptr<!rec_S>
32-
// CHECK: }
33-
// CHECK: %[[#RETADDR:]] = cir.get_member %1[0] {name = "x"} : !cir.ptr<!rec_S> -> !cir.ptr<!s32i>
27+
// CHECK: %[[#REF_TMP:]] = cir.alloca !rec_S, !cir.ptr<!rec_S>, ["ref.tmp0"]
28+
// CHECK: cir.scope {
29+
// CHECK: %[[#VAR:]] = cir.alloca !rec_S, !cir.ptr<!rec_S>
30+
// [...]
31+
// CHECK: cir.copy %[[#VAR]] to %[[#REF_TMP]] : !cir.ptr<!rec_S>
32+
// CHECK: }
33+
// CHECK: %[[#RETADDR:]] = cir.get_member %[[#REF_TMP]][0] {name = "x"} : !cir.ptr<!rec_S> -> !cir.ptr<!s32i>
3434
// CHECK: %{{.+}} = cir.load{{.*}} %[[#RETADDR]] : !cir.ptr<!s32i>, !s32i
3535

3636
// Expression is wrapped in an expression attribute (just ensure it does not crash).

0 commit comments

Comments
 (0)