diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-22 09:27:00 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-22 09:27:00 +0200 |
| commit | a4ae84a892b6e5a8b563f0bb125fcc5a3448b383 (patch) | |
| tree | a916fa4abdd7d16ffbac5dbe87dfb8c5e4c2d406 /validation/optim/and-or-bf2.c | |
| parent | 3d30b78ec7efa501ad3ea4c5f077ef653ed5b231 (diff) | |
| parent | 9feb4b16da637978ce4abdfe23bf9779521a8b77 (diff) | |
| download | sparse-dev-a4ae84a892b6e5a8b563f0bb125fcc5a3448b383.tar.gz | |
Merge branches 'optim-shift-and' and 'optim-bitfield' into tip
Diffstat (limited to 'validation/optim/and-or-bf2.c')
| -rw-r--r-- | validation/optim/and-or-bf2.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/validation/optim/and-or-bf2.c b/validation/optim/and-or-bf2.c new file mode 100644 index 00000000..2296da12 --- /dev/null +++ b/validation/optim/and-or-bf2.c @@ -0,0 +1,27 @@ +struct s { + char a:3; + char b:3; + char c:2; +}; + +void foo(struct s *p) +{ + p->a = 1; + p->b = 2; + p->c = 3; +} + +/* + * check-name: and-or-bf2 + * check-command: test-linearize -Wno-decl $file + * + * check-output-start +foo: +.L0: + <entry-point> + store.8 $209 -> 0[%arg1] + ret + + + * check-output-end + */ |
