From: Jacob Lifshay <programmerjake@gmail.com> Date: Thu, 9 Jul 2020 04:43:15 +0000 (-0700) Subject: swap assembly argument order to be the correct order X-Git-Tag: v0.2.0~42 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06189a192143b7ef60905f1c45276bb6c7367d90;p=power-instruction-analyzer.git swap assembly argument order to be the correct order --- diff --git a/src/lib.rs b/src/lib.rs index ba91f9b..51f0d16 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -182,16 +182,16 @@ macro_rules! map_instr_asm_args { concat!(" ", $string0, $(", ", $strings),*) }; ([$($args:ident)*], [rt $($results:ident)*], [$($strings:literal)*]) => { - map_instr_asm_args!([$($args)*], [$($results)*], ["$0" $($strings)*]) + map_instr_asm_args!([$($args)*], [$($results)*], [$($strings)* "$0"]) }; ([ra $($args:ident)*], [$($results:ident)*], [$($strings:literal)*]) => { - map_instr_asm_args!([$($args)*], [$($results)*], ["$3" $($strings)*]) + map_instr_asm_args!([$($args)*], [$($results)*], [$($strings)* "$3"]) }; ([rb $($args:ident)*], [$($results:ident)*], [$($strings:literal)*]) => { - map_instr_asm_args!([$($args)*], [$($results)*], ["$4" $($strings)*]) + map_instr_asm_args!([$($args)*], [$($results)*], [$($strings)* "$4"]) }; ([rc $($args:ident)*], [$($results:ident)*], [$($strings:literal)*]) => { - map_instr_asm_args!([$($args)*], [$($results)*], ["$5" $($strings)*]) + map_instr_asm_args!([$($args)*], [$($results)*], [$($strings)* "$5"]) }; ([$($args:ident)*], [ov $($results:ident)*], [$($strings:literal)*]) => { map_instr_asm_args!([$($args)*], [$($results)*], [$($strings)*])