aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-07 04:08:21 +0000
committerChris Lattner <sabre@nondot.org>2004-04-07 04:08:21 +0000
commit6a135f2e8cb2a3ce291ea7adc73cc0fc50b8ed1c (patch)
tree487c91389e405ae7ca447bed871a75d6ff14b0c4
parent22ede709f6e62c495fe8af97dc8e81e82d5faeed (diff)
downloadexternal_llvm-6a135f2e8cb2a3ce291ea7adc73cc0fc50b8ed1c.zip
external_llvm-6a135f2e8cb2a3ce291ea7adc73cc0fc50b8ed1c.tar.gz
external_llvm-6a135f2e8cb2a3ce291ea7adc73cc0fc50b8ed1c.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12738 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/Generic/BasicInstrs.llx54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/BasicInstrs.llx b/test/CodeGen/Generic/BasicInstrs.llx
new file mode 100644
index 0000000..2ddec62
--- /dev/null
+++ b/test/CodeGen/Generic/BasicInstrs.llx
@@ -0,0 +1,54 @@
+; New testcase, this contains a bunch of simple instructions that should be
+; handled by a code generator.
+
+; RUN: llvm-as < %S | llc
+
+int %add(int %A, int %B) {
+ %R = add int %A, %B
+ ret int %R
+}
+
+int %sub(int %A, int %B) {
+ %R = sub int %A, %B
+ ret int %R
+}
+
+int %mul(int %A, int %B) {
+ %R = mul int %A, %B
+ ret int %R
+}
+
+int %sdiv(int %A, int %B) {
+ %R = div int %A, %B
+ ret int %R
+}
+
+uint %udiv(uint %A, uint %B) {
+ %R = div uint %A, %B
+ ret uint %R
+}
+
+int %srem(int %A, int %B) {
+ %R = rem int %A, %B
+ ret int %R
+}
+
+uint %urem(uint %A, uint %B) {
+ %R = rem uint %A, %B
+ ret uint %R
+}
+
+int %and(int %A, int %B) {
+ %R = and int %A, %B
+ ret int %R
+}
+
+int %or(int %A, int %B) {
+ %R = or int %A, %B
+ ret int %R
+}
+
+int %xor(int %A, int %B) {
+ %R = xor int %A, %B
+ ret int %R
+}