diff options
Diffstat (limited to 'test/ExecutionEngine/test-logical.ll')
-rw-r--r-- | test/ExecutionEngine/test-logical.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-logical.ll b/test/ExecutionEngine/test-logical.ll new file mode 100644 index 0000000..86af2e2 --- /dev/null +++ b/test/ExecutionEngine/test-logical.ll @@ -0,0 +1,23 @@ +; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc +; RUN: lli %t.bc > /dev/null + + +int %main() { + %A = and sbyte 4, 8 + %B = or sbyte %A, 7 + %C = xor sbyte %B, %A + + %A = and short 4, 8 + %B = or short %A, 7 + %C = xor short %B, %A + + %A = and int 4, 8 + %B = or int %A, 7 + %C = xor int %B, %A + + %A = and long 4, 8 + %B = or long %A, 7 + %C = xor long %B, %A + + ret int 0 +} |