New testcase for logical operators
authorChris Lattner <sabre@nondot.org>
Sat, 2 Nov 2002 20:04:02 +0000 (20:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 2 Nov 2002 20:04:02 +0000 (20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4501 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/test-logical.ll [new file with mode: 0644]

diff --git a/test/ExecutionEngine/test-logical.ll b/test/ExecutionEngine/test-logical.ll
new file mode 100644 (file)
index 0000000..732054d
--- /dev/null
@@ -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
+}