[cfe-commits] r85972 - /cfe/trunk/test/CodeGen/volatile.c
Mike Stump
mrs at apple.com
Tue Nov 3 15:32:42 PST 2009
Author: mrs
Date: Tue Nov 3 17:32:42 2009
New Revision: 85972
URL: http://llvm.org/viewvc/llvm-project?rev=85972&view=rev
Log:
Test case for recent checkin.
Modified:
cfe/trunk/test/CodeGen/volatile.c
Modified: cfe/trunk/test/CodeGen/volatile.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/volatile.c?rev=85972&r1=85971&r2=85972&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/volatile.c (original)
+++ cfe/trunk/test/CodeGen/volatile.c Tue Nov 3 17:32:42 2009
@@ -1,8 +1,8 @@
// RUN: clang-cc -emit-llvm < %s -o %t &&
-// RUN: grep volatile %t | count 25 &&
+// RUN: grep volatile %t | count 29 &&
// RUN: grep memcpy %t | count 7
-// The number 25 comes from the current codegen for volatile loads;
+// The number 29 comes from the current codegen for volatile loads;
// if this number changes, it's not necessarily something wrong, but
// something has changed to affect volatile load/store codegen
@@ -38,6 +38,9 @@
volatile struct {int x;} aggFct(void);
+typedef volatile int volatile_int;
+volatile_int vtS;
+
int main() {
int i;
@@ -62,6 +65,7 @@
i=VE.yx[1];
i=vVE.zy[1];
i = aggFct().x;
+ i=vtS;
// store
@@ -81,12 +85,14 @@
vBF.x=i;
V[3]=i;
vV[3]=i;
+ vtS=i;
// other ops:
++S;
++vS;
i+=S;
i+=vS;
+ ++vtS;
(void)vF2;
vF2 = vF2;
vF2 = vF2 = vF2;
More information about the cfe-commits
mailing list