summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/volatile.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-11-19 09:36:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-11-19 09:36:46 +0000
commit9b1335eca844fb364e78f5de1f5efa968900a120 (patch)
tree4470a163ffa4744697e048905633a2344b2762a6 /clang/test/CodeGen/volatile.c
parentfd2c607026c9b70f9e5afe58fde7e5771ce5e53f (diff)
downloadbcm5719-llvm-9b1335eca844fb364e78f5de1f5efa968900a120.tar.gz
bcm5719-llvm-9b1335eca844fb364e78f5de1f5efa968900a120.zip
Fix redundant load of bit-fields on assignment (to get the updated
value). - Use extra argument to EmitStoreThroughLValue to provide place to write update bit-field value if caller requires it. - This fixes several FIXMEs. llvm-svn: 59615
Diffstat (limited to 'clang/test/CodeGen/volatile.c')
-rw-r--r--clang/test/CodeGen/volatile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/volatile.c b/clang/test/CodeGen/volatile.c
index 4db4a5d8431..ed0a33e9862 100644
--- a/clang/test/CodeGen/volatile.c
+++ b/clang/test/CodeGen/volatile.c
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm < %s | grep volatile | count 26
+// RUN: clang -emit-llvm < %s | grep volatile | count 25
// The number 26 comes from the current codegen for volatile loads;
// if this number changes, it's not necessarily something wrong, but
@@ -76,7 +76,7 @@ void main() {
vpF2->x=i;
vF3.x.y=i;
BF.x=i;
- vBF.x=i; // FIXME: This generates an extra volatile load
+ vBF.x=i;
V[3]=i;
vV[3]=i;
OpenPOWER on IntegriCloud