diff options
| author | Pekka Enberg <penberg@kernel.org> | 2011-08-27 15:44:01 +0300 |
|---|---|---|
| committer | Pekka Enberg <penberg@kernel.org> | 2011-08-27 15:49:04 +0300 |
| commit | 8fe6c7a469a65396b03ea58c6fca04b7ca13c99e (patch) | |
| tree | 5fd5d528aa9e1b64704eefc7f4d25e015e483b4b /validation/backend/bitwise-ops.c | |
| parent | 397ea4ed08f699ac84d8fa1e4470b15a2632b2e1 (diff) | |
| download | sparse-dev-8fe6c7a469a65396b03ea58c6fca04b7ca13c99e.tar.gz | |
sparse, llvm: Bitwise not operator codegen
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'validation/backend/bitwise-ops.c')
| -rw-r--r-- | validation/backend/bitwise-ops.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/validation/backend/bitwise-ops.c b/validation/backend/bitwise-ops.c index aa1029e4..659c7639 100644 --- a/validation/backend/bitwise-ops.c +++ b/validation/backend/bitwise-ops.c @@ -48,6 +48,16 @@ static unsigned int uxor(unsigned int x, unsigned int y) return x ^ y; } +static int not(int x) +{ + return ~x; +} + +static unsigned int unot(unsigned int x) +{ + return ~x; +} + /* * check-name: Bitwise operator code generation * check-command: ./sparsec -c $file -o tmp.o |
