From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/CodeGen/assign.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/CodeGen/assign.c') diff --git a/test/CodeGen/assign.c b/test/CodeGen/assign.c index eab3d35..05141bb 100644 --- a/test/CodeGen/assign.c +++ b/test/CodeGen/assign.c @@ -15,15 +15,15 @@ void f0() { y = (x = 1); } -// Check that we do generate reloads for volatile access. +// This used to test that we generate reloads for volatile access, +// but that does not appear to be correct behavior for C. // // CHECK: define void @f1() // CHECK: [[x_1:%.*]] = alloca i32, align 4 // CHECK-NEXT: [[y_1:%.*]] = alloca i32, align 4 // CHECK-NEXT: volatile store i32 1, i32* [[x_1]] // CHECK-NEXT: volatile store i32 1, i32* [[x_1]] -// CHECK-NEXT: [[tmp_1:%.*]] = volatile load i32* [[x_1]] -// CHECK-NEXT: volatile store i32 [[tmp_1]], i32* [[y_1]] +// CHECK-NEXT: volatile store i32 1, i32* [[y_1]] // CHECK: } void f1() { volatile int x, y; -- cgit v1.1