diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-02 20:13:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-02 20:13:40 +0000 |
commit | d04b51d44797d31d987401f868c6ff7fb19943af (patch) | |
tree | 0b75cc60344e1b59ec624482b9d7619c6aace635 | |
parent | 68aad93291500d30bd3b26ff99d51c70975ce510 (diff) |
New testcase for arithmetic operations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4504 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/ExecutionEngine/test-arith.ll | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-arith.ll b/test/ExecutionEngine/test-arith.ll new file mode 100644 index 0000000000..8f04cbaf4f --- /dev/null +++ b/test/ExecutionEngine/test-arith.ll @@ -0,0 +1,28 @@ + +void %test() { + %A = add sbyte 0, 12 + %B = sub sbyte %A, %A + ;%C = mul sbyte %B, %B + ;%D = div sbyte %C, %C + ;%E = rem sbyte %D, %D + ;%F = div ubyte 5, 6 + ;%G = rem ubyte 6, 5 + + %A = add short 0, 12 + %B = sub short %A, %A + ;%C = mul short %B, %B + ;%D = div short %C, %C + ;%E = rem short %D, %D + ;%F = div ushort 5, 6 + ;%G = rem uint 6, 5 + + %A = add int 0, 12 + %B = sub int %A, %A + ;%C = mul int %B, %B + ;%D = div int %C, %C + ;%E = rem int %D, %D + ;%F = div uint 5, 6 + ;%G = rem uint 6, 5 + + ret void +} |