aboutsummaryrefslogtreecommitdiffhomepage
path: root/gen
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2023-12-26 13:06:39 +0900
committerMITSUNARI Shigeo <[email protected]>2023-12-26 13:06:39 +0900
commit8d0e78146ebdf70c49820322bbc5224eeddf0433 (patch)
treeb633855d6afdbba93057dcea63ba9b3b6d6a043f /gen
parent2255aea0d3403509daec287206a3550ace6f8e98 (diff)
downloadxbyak-8d0e78146ebdf70c49820322bbc5224eeddf0433.tar.gz
xbyak-8d0e78146ebdf70c49820322bbc5224eeddf0433.zip
set 0 for the default value of dfv
Diffstat (limited to 'gen')
-rw-r--r--gen/gen_code.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gen/gen_code.cpp b/gen/gen_code.cpp
index d1a0bd7..13b9ab6 100644
--- a/gen/gen_code.cpp
+++ b/gen/gen_code.cpp
@@ -635,10 +635,10 @@ void put()
// ccmpscc
// true if SCC = 0b1010, false if SCC = 0b1011 (see APX Architecture Specification p.266)
const char *s = p->ext == 10 ? "t" : p->ext == 11 ? "f" : p->name;
- printf("void ccmp%s(const Operand& op1, const Operand& op2, int dfv) { opCcmp(op1, op2, dfv, 0x38, %d); }\n", s, p->ext);
- printf("void ccmp%s(const Operand& op, int imm, int dfv) { opCcmpi(op, imm, dfv, %d); }\n", s, p->ext);
- printf("void ctest%s(const Operand& op, const Reg& r, int dfv) { opCcmp(op, r, dfv, 0x84, %d); }\n", s, p->ext);
- printf("void ctest%s(const Operand& op, int imm, int dfv) { opTesti(op, imm, dfv, %d); }\n", s, p->ext);
+ printf("void ccmp%s(const Operand& op1, const Operand& op2, int dfv = 0) { opCcmp(op1, op2, dfv, 0x38, %d); }\n", s, p->ext);
+ printf("void ccmp%s(const Operand& op, int imm, int dfv = 0) { opCcmpi(op, imm, dfv, %d); }\n", s, p->ext);
+ printf("void ctest%s(const Operand& op, const Reg& r, int dfv = 0) { opCcmp(op, r, dfv, 0x84, %d); }\n", s, p->ext);
+ printf("void ctest%s(const Operand& op, int imm, int dfv = 0) { opTesti(op, imm, dfv, %d); }\n", s, p->ext);
}
}
{