aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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
+}