]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM: Fix compilation of math.sinh/cosh/tanh.
authorMike Pall <mike>
Mon, 30 Apr 2012 15:09:41 +0000 (17:09 +0200)
committerMike Pall <mike>
Mon, 30 Apr 2012 15:09:41 +0000 (17:09 +0200)
src/lj_ffrecord.c
src/lj_ircall.h

index b2b6282dba46c532ce3fd378351638b30f4e2916..716226bc7b2976624b9bc5a7d9d5d164ec14fabd 100644 (file)
@@ -476,7 +476,7 @@ static void LJ_FASTCALL recff_math_atrig(jit_State *J, RecordFFData *rd)
 static void LJ_FASTCALL recff_math_htrig(jit_State *J, RecordFFData *rd)
 {
   TRef tr = lj_ir_tonum(J, J->base[0]);
-  J->base[0] = lj_ir_call(J, rd->data, tr);
+  J->base[0] = emitir(IRTN(IR_CALLN), tr, rd->data);
 }
 
 static void LJ_FASTCALL recff_math_modf(jit_State *J, RecordFFData *rd)
index 4e8b7246d787d8f0bf6408e13154b473e7163a7f..39f054a97041e30e0aedc89ba25433508dd67e82 100644 (file)
@@ -114,9 +114,9 @@ typedef struct CCallInfo {
   _(ANY,       lj_mem_newgco,          2,  FS, P32, CCI_L) \
   _(ANY,       lj_math_random_step, 1, FS, NUM, CCI_CASTU64|CCI_NOFPRCLOBBER) \
   _(ANY,       lj_vm_modi,             2,  FN, INT, 0) \
-  _(ANY,       sinh,                   1,  N, NUM, 0) \
-  _(ANY,       cosh,                   1,  N, NUM, 0) \
-  _(ANY,       tanh,                   1,  N, NUM, 0) \
+  _(ANY,       sinh,                   ARG1_FP,  N, NUM, 0) \
+  _(ANY,       cosh,                   ARG1_FP,  N, NUM, 0) \
+  _(ANY,       tanh,                   ARG1_FP,  N, NUM, 0) \
   _(ANY,       fputc,                  2,  S, INT, 0) \
   _(ANY,       fwrite,                 4,  S, INT, 0) \
   _(ANY,       fflush,                 1,  S, INT, 0) \