@@ -14,7 +14,10 @@ import LLVM.General.Context
14import LLVM.General.Diagnostic
14import LLVM.General.Diagnostic
15import LLVM.General.AST
15import LLVM.General.AST
16import LLVM.General.AST.AddrSpace
16import LLVM.General.AST.AddrSpace
17−import LLVM.General.Target
17+import LLVM.General.Target ( TargetMachine
18+ , withTargetOptions, withTargetMachine, getTargetMachineDataLayout
19+ , initializeAllTargets, lookupTarget
18import LLVM.General.AST.DataLayout
21import LLVM.General.AST.DataLayout
19import LLVM.General.PassManager
22import LLVM.General.PassManager
20import qualified LLVM.General.Module as M
23import qualified LLVM.General.Module as M
@@ -895,11 +898,11 @@ cgOp (LZExt (ITFixed from) (ITFixed to)) [x]
895cgOp (LSExt (ITFixed from) (ITFixed to)) [x]
898cgOp (LSExt (ITFixed from) (ITFixed to)) [x]
896 | nativeTyWidth from < nativeTyWidth to = iCoerce SExt from to x
899 | nativeTyWidth from < nativeTyWidth to = iCoerce SExt from to x
898−cgOp (LLt (ATInt ity)) [x,y] = iCmp ity IPred.SLT x y
901+cgOp (LLt (ATInt ity)) [x,y] = iCmp ity IPred.ULT x y
899−cgOp (LLe (ATInt ity)) [x,y] = iCmp ity IPred.SLE x y
902+cgOp (LLe (ATInt ity)) [x,y] = iCmp ity IPred.ULE x y
900cgOp (LEq (ATInt ity)) [x,y] = iCmp ity IPred.EQ x y
903cgOp (LEq (ATInt ity)) [x,y] = iCmp ity IPred.EQ x y
901−cgOp (LGe (ATInt ity)) [x,y] = iCmp ity IPred.SGE x y
904+cgOp (LGe (ATInt ity)) [x,y] = iCmp ity IPred.UGE x y
902−cgOp (LGt (ATInt ity)) [x,y] = iCmp ity IPred.SGT x y
905+cgOp (LGt (ATInt ity)) [x,y] = iCmp ity IPred.UGT x y
903cgOp (LPlus (ATInt ity)) [x,y] = ibin ity x y (Add False False)
906cgOp (LPlus (ATInt ity)) [x,y] = ibin ity x y (Add False False)
904cgOp (LMinus (ATInt ity)) [x,y] = ibin ity x y (Sub False False)
907cgOp (LMinus (ATInt ity)) [x,y] = ibin ity x y (Sub False False)
905cgOp (LTimes (ATInt ity)) [x,y] = ibin ity x y (Mul False False)
908cgOp (LTimes (ATInt ity)) [x,y] = ibin ity x y (Mul False False)