mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Implement setcc for booleans. Fixes bug:
test/Regression/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8617b3579b
commit
252030e86b
@ -254,6 +254,10 @@ struct EmptyRules : public TemplateRules<Constant, EmptyRules> {
|
||||
//
|
||||
struct BoolRules : public TemplateRules<ConstantBool, BoolRules> {
|
||||
|
||||
static ConstantBool *LessThan(const ConstantBool *V1, const ConstantBool *V2){
|
||||
return ConstantBool::get(V1->getValue() < V2->getValue());
|
||||
}
|
||||
|
||||
static Constant *And(const ConstantBool *V1, const ConstantBool *V2) {
|
||||
return ConstantBool::get(V1->getValue() & V2->getValue());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user