show verbose option for sanitizer

dev
MITSUNARI Shigeo 6 years ago
parent 19eb6ce3b3
commit 2330dec16b
  1. 2
      Makefile
  2. 16
      src/fp_generator.hpp

@ -270,7 +270,7 @@ sample: $(SAMPLE_EXE) $(MCL_LIB)
TEST_EXE=$(addprefix $(EXE_DIR)/,$(TEST_SRC:.cpp=.exe)) TEST_EXE=$(addprefix $(EXE_DIR)/,$(TEST_SRC:.cpp=.exe))
test_ci: $(TEST_EXE) test_ci: $(TEST_EXE)
@sh -ec 'for i in $(TEST_EXE); do echo $$i; $$i; done' @sh -ec 'for i in $(TEST_EXE); do echo $$i; env LSAN_OPTIONS=verbosity=1:log_threads=1 $$i; done'
test: $(TEST_EXE) test: $(TEST_EXE)
@echo test $(TEST_EXE) @echo test $(TEST_EXE)
@sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt @sh -ec 'for i in $(TEST_EXE); do $$i|grep "ctest:name"; done' > result.txt

@ -585,10 +585,10 @@ private:
size of t1, t2 == 6 size of t1, t2 == 6
destroy t0, t1 destroy t0, t1
*/ */
void gen_raw_fp_add6(const Reg64& pz, const Reg64& px, const Reg64& py, int offset, const Pack& t1, const Pack& t2, bool withCarry) void gen_raw_fp_add6(const RegExp& pz, const RegExp& px, const RegExp& py, const Pack& t1, const Pack& t2, bool withCarry)
{ {
load_rm(t1, px + offset); load_rm(t1, px);
add_rm(t1, py + offset, withCarry); add_rm(t1, py, withCarry);
Label exit; Label exit;
if (isFullBit_) { if (isFullBit_) {
jnc("@f"); jnc("@f");
@ -603,7 +603,7 @@ private:
cmovnc(t1[i], t2[i]); cmovnc(t1[i], t2[i]);
} }
L(exit); L(exit);
store_mr(pz + offset, t1); store_mr(pz, t1);
} }
void gen_fp_add6() void gen_fp_add6()
{ {
@ -618,7 +618,7 @@ private:
Pack t2 = sf.t.sub(6); Pack t2 = sf.t.sub(6);
t2.append(rax); t2.append(rax);
t2.append(px); // destory after used t2.append(px); // destory after used
gen_raw_fp_add6(pz, px, py, 0, t1, t2, false); gen_raw_fp_add6(pz, px, py, t1, t2, false);
} }
void3u gen_fp_add() void3u gen_fp_add()
{ {
@ -691,7 +691,7 @@ private:
Pack t2 = sf.t.sub(6); Pack t2 = sf.t.sub(6);
t2.append(rax); t2.append(rax);
t2.append(py); t2.append(py);
gen_raw_fp_add6(pz, px, py, pn_ * 8, t1, t2, true); gen_raw_fp_add6(pz + pn_ * 8, px + pn_ * 8, py + pn_ * 8, t1, t2, true);
return func; return func;
} }
return 0; return 0;
@ -3529,9 +3529,9 @@ private:
t2.append(rax); t2.append(rax);
t2.append(px); // destory after used t2.append(px); // destory after used
vmovq(xm0, px); vmovq(xm0, px);
gen_raw_fp_add6(pz, px, py, 0, t1, t2, false); gen_raw_fp_add6(pz, px, py, t1, t2, false);
vmovq(px, xm0); vmovq(px, xm0);
gen_raw_fp_add6(pz, px, py, FpByte_, t1, t2, false); gen_raw_fp_add6(pz + FpByte_, px + FpByte_, py + FpByte_, t1, t2, false);
} }
void gen_fp2_sub6() void gen_fp2_sub6()
{ {

Loading…
Cancel
Save