diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-01 01:57:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-01 01:57:44 +0000 |
commit | e4a013377a2c6ea68b960f1f785c68f8f85f50f7 (patch) | |
tree | a733190eb04276e382f26e393e608855211be40a /test/ExecutionEngine/test-shift.ll | |
parent | 9171ef5e8df401a6a9ca1112d651a66ab2dffb84 (diff) | |
download | external_llvm-e4a013377a2c6ea68b960f1f785c68f8f85f50f7.zip external_llvm-e4a013377a2c6ea68b960f1f785c68f8f85f50f7.tar.gz external_llvm-e4a013377a2c6ea68b960f1f785c68f8f85f50f7.tar.bz2 |
Add tests for 64 bit shifts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine/test-shift.ll')
-rw-r--r-- | test/ExecutionEngine/test-shift.ll | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/ExecutionEngine/test-shift.ll b/test/ExecutionEngine/test-shift.ll index 289a589..5137613 100644 --- a/test/ExecutionEngine/test-shift.ll +++ b/test/ExecutionEngine/test-shift.ll @@ -23,9 +23,15 @@ int %main() { %t2 = shr uint 1, ubyte 5 ;%t1 = shr long 1, ubyte %shamt - %t2 = shr long 1, ubyte 4 + %t1 = shr long 1, ubyte 4 + %t2 = shr long 1, ubyte %shamt + %t3 = shl long 1, ubyte 4 + %t4 = shl long 1, ubyte %shamt ;%t1 = shr ulong 1, ubyte %shamt - %t2 = shr ulong 1, ubyte 5 + %t1 = shr ulong 1, ubyte 5 + %t2 = shr ulong 1, ubyte %shamt + %t3 = shl ulong 1, ubyte 5 + %t4 = shl ulong 1, ubyte %shamt ret int 0 } |