Implement the signed icmp instructions properly. To do this we introduce
authorReid Spencer <rspencer@reidspencer.com>
Sat, 20 Jan 2007 20:12:29 +0000 (20:12 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 20 Jan 2007 20:12:29 +0000 (20:12 +0000)
commita42c7fd0ca5f2d6f653e3a9bac13ae176861a823
tree714c7089076895a722ebece9e3d3fce722f6e38f
parent515674c7b66a411db4ea2fa1f5c30cd1461d3e51
Implement the signed icmp instructions properly. To do this we introduce
a small inline function to sign extend a uint64_t value based on its
type's bitwidth. This function is then used in both executeSExtInst and
the various executeICMP_S** functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33403 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/Interpreter/Execution.cpp