Added vicmp, vfmp. Updated docs. Support FreeBSD.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@51 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
95cef74480
commit
3bbc5685a8
11 changed files with 747 additions and 729 deletions
|
|
@ -187,9 +187,8 @@ def do_constant():
|
|||
f.fdiv(f).frem(f).fcmp(RPRED_ULT, f)
|
||||
vi = Constant.vector([Constant.int(ti,42)]*10)
|
||||
vf = Constant.vector([Constant.real(Type.float(), 3.14)]*10)
|
||||
# after LLVM 2.3!
|
||||
#vi.vicmp(IPRED_ULT, vi)
|
||||
#vf.vfcmp(RPRED_ULT, vf)
|
||||
vi.vicmp(IPRED_ULT, vi)
|
||||
vf.vfcmp(RPRED_ULT, vf)
|
||||
k.shl(k).lshr(k).ashr(k)
|
||||
# TODO gep
|
||||
k.trunc(Type.int(1))
|
||||
|
|
@ -430,9 +429,8 @@ def do_builder():
|
|||
b.fcmp(RPRED_ULT, fv, fv)
|
||||
vi = Constant.vector([Constant.int(ti,42)]*10)
|
||||
vf = Constant.vector([Constant.real(Type.float(), 3.14)]*10)
|
||||
# after LLVM 2.3!
|
||||
# b.vicmp(IPRED_ULT, vi, vi)
|
||||
# b.vfcmp(RPRED_ULT, vf, vf)
|
||||
b.vicmp(IPRED_ULT, vi, vi)
|
||||
b.vfcmp(RPRED_ULT, vf, vf)
|
||||
# TODO b.getresult(v, 0)
|
||||
b.call(f, [v])
|
||||
b.select(Constant.int(Type.int(1), 1), blk, blk)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue