aboutsummaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/test-logical.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-02 20:04:02 +0000
committerChris Lattner <sabre@nondot.org>2002-11-02 20:04:02 +0000
commit5a23ddfa17f889ae6ab1d73a3835a39a2af131b8 (patch)
tree32b97c105df9cc3380516a6f43033f6ad91d105b /test/ExecutionEngine/test-logical.ll
parent51b49a963305db469152ec2cbcee7de53f31f391 (diff)
New testcase for logical operators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine/test-logical.ll')
-rw-r--r--test/ExecutionEngine/test-logical.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-logical.ll b/test/ExecutionEngine/test-logical.ll
new file mode 100644
index 0000000000..732054d6f8
--- /dev/null
+++ b/test/ExecutionEngine/test-logical.ll
@@ -0,0 +1,16 @@
+
+void %test() {
+ %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
+
+ ret void
+}