]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add another C call helper.
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 19 Jul 2004 08:18:00 +0000 (08:18 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 19 Jul 2004 08:18:00 +0000 (08:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2510

coregrind/vg_instrument.c
include/vg_skin.h.base

index 9b5e3c399592e4ed6d2c94b61b09a0e5b9474da5..86b9d5c65798de9b1cd0fae655c41ef4e8e1d629 100644 (file)
@@ -182,6 +182,14 @@ void VG_(ccall_RLL_0)(UCodeBlock* cb, Addr f, UInt t1, UInt lit2,
    VG_(ccall_RRR_0)(cb, f, t1, t2, t3, regparms_n);
 }
 
+// f(lit, reg, reg)
+void VG_(ccall_LRR_0)(UCodeBlock* cb, Addr f, UInt lit1, UInt t2,
+                      UInt t3, UInt regparms_n)
+{
+   UInt t1 = VG_(lit_to_newreg)(cb, lit1);
+   VG_(ccall_RRR_0)(cb, f, t1, t2, t3, regparms_n);
+}
+
 // f(lit, lit, reg)
 void VG_(ccall_LLR_0)(UCodeBlock* cb, Addr f, UInt lit1, UInt lit2,
                       UInt t3, UInt regparms_n)
index b3bd480827ad7afe74c697ab2b01d270f867942d..4390558cde6645cd44c62a2f0a7a48913400f97c 100644 (file)
@@ -1188,6 +1188,7 @@ EV VG_(ccall_LL_R)  ( CB_F, UInt L1, UInt L2, UInt R_ret, RPn );
 
 EV VG_(ccall_RRR_0) ( CB_F, UInt R1, UInt R2, UInt R3,    RPn );
 EV VG_(ccall_RLL_0) ( CB_F, UInt R1, UInt L2, UInt L3,    RPn );
+EV VG_(ccall_LRR_0) ( CB_F, UInt L1, UInt R2, UInt R3,    RPn );
 EV VG_(ccall_LLR_0) ( CB_F, UInt L1, UInt L2, UInt R3,    RPn );
 EV VG_(ccall_LLL_0) ( CB_F, UInt L1, UInt L2, UInt L3,    RPn );