Implement bitfield write.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46258 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/bitfield.c b/test/CodeGen/bitfield.c
index 5198765..441a54a 100644
--- a/test/CodeGen/bitfield.c
+++ b/test/CodeGen/bitfield.c
@@ -3,6 +3,8 @@
 // RUN: grep "ashr i32 %tmp1, 19" %t1 &&
 // RUN: grep "shl i16 %tmp4, 1" %t1 &&
 // RUN: grep "lshr i16 %tmp5, 9" %t1
+// RUN: grep "and i32 %tmp, -8192" %t1
+// RUN: grep "and i16 %tmp5, -32513" %t1
 // Test bitfield access
 
 
@@ -11,3 +13,9 @@
 int f() {
   return stb1.a + stb1.b + stb1.c;
 }
+
+void g() {
+  stb1.a = -40;
+  stb1.b = 10;
+  stb1.c = 15;
+}