Lines Matching refs:qq
214 print qq|static void $test(void)\n|;
215 print qq|\{\n|;
256 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
262 print qq|,| if $valuec > 0;
263 print qq| $value$SubTypeSuffixes{$subtype}|;
267 print qq| \} \};\n|;
293 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
299 print qq|,| if $valuec > 0;
300 print qq| $value$SubTypeSuffixes{$subtype}|;
304 print qq| \} \};\n|;
378 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
384 print qq|,| if $valuec > 0;
385 print qq| $value$SubTypeSuffixes{$subtype}|;
389 print qq| \} \};\n|;
415 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
421 print qq|,| if $valuec > 0;
422 print qq| $value$SubTypeSuffixes{$subtype}|;
426 print qq| \} \};\n|;
503 print qq| $ArgTypes{$type} $name|;
504 print qq| = arg$index| if $type =~ /^m(8|16|32|64|128)$/;
505 print qq|;\n|;
526 print qq| $ArgTypes{$type} $name;\n|;
545 print qq| $ArgTypes{$type} $name;\n|;
563 print qq| $ArgTypes{eflags} $name;\n|;
587 print qq| $ArgTypes{fpucw} $name;\n|;
611 print qq| $ArgTypes{fpusw} $name;\n|;
655 print qq| char state\[108\];\n|;
656 print qq|\n|;
657 print qq| if (sigsetjmp(catchpoint, 1) == 0)\n|;
658 print qq| \{\n|;
659 print qq| asm\(\n|;
660 # print qq| \"fsave %$stateargnum\\n\"\n|;
661 print qq| \"ffree %%st(7)\\n\"\n|;
662 print qq| \"ffree %%st(6)\\n\"\n|;
663 print qq| \"ffree %%st(5)\\n\"\n|;
664 print qq| \"ffree %%st(4)\\n\"\n|;
672 print qq| \"movb %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
676 print qq| \"movw %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
680 print qq| \"movl %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
684 print qq| \"movq %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
688 print qq| \"movq %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
692 print qq| \"movlps 0+%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
693 print qq| \"movhps 8+%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
707 print qq| \"flds %$arg->{argnum}\\n\"\n|;
711 print qq| \"fldl %$arg->{argnum}\\n\"\n|;
716 print qq| \"fldz\\n\"\n|;
722 print qq| \"pushfq\\n\"\n|;
723 print qq| \"andl \$$eflagsmask, (%%rsp)\\n\"\n| if defined($eflagsmask);
724 print qq| \"andl \$0, 4(%%rsp)\\n\"\n| if defined($eflagsmask);
725 print qq| \"orq \$$eflagsset, (%%rsp)\\n\"\n| if defined($eflagsset);
726 print qq| \"popfq\\n\"\n|;
731 print qq| \"subq \$2, %%rsp\\n\"\n|;
732 print qq| \"fstcw (%%rsp)\\n\"\n|;
733 print qq| \"andw \$$fpucwmask, (%%rsp)\\n\"\n| if defined($fpucwmask);
734 print qq| \"orw \$$fpucwset, (%%rsp)\\n\"\n| if defined($fpucwset);
735 print qq| \"fldcw (%%rsp)\\n\"\n|;
736 print qq| \"addq \$2, %%rsp\\n\"\n|;
739 print qq| \"$insn|;
749 print qq|$prefix%%$arg->{register}|;
757 print qq|$prefix%%$register|;
763 print qq|$prefix%$arg->{result}->{argnum}|;
767 print qq|$prefix%$arg->{argnum}|;
772 print qq|$prefix\$$arg->{value}|;
778 print qq|\\n\"\n|;
786 print qq| \"movb %%$result->{register}, %$result->{argnum}\\n\"\n|;
790 print qq| \"movw %%$result->{register}, %$result->{argnum}\\n\"\n|;
794 print qq| \"movl %%$result->{register}, %$result->{argnum}\\n\"\n|;
798 print qq| \"movq %%$result->{register}, %$result->{argnum}\\n\"\n|;
802 print qq| \"movq %%$result->{register}, %$result->{argnum}\\n\"\n|;
806 print qq| \"movlps %%$result->{register}, 0+%$result->{argnum}\\n\"\n|;
807 print qq| \"movhps %%$result->{register}, 8+%$result->{argnum}\\n\"\n|;
815 print qq| \"pushfq\\n\"\n|;
816 print qq| \"popq %$result->{argnum}\\n\"\n|;
820 print qq| \"fstcw %$result->{argnum}\\n\"\n|;
824 print qq| \"fstsw %$result->{argnum}\\n\"\n|;
834 print qq| \"fstps %$result->{argnum}\\n\"\n|;
838 print qq| \"fstpl %$result->{argnum}\\n\"\n|;
843 print qq| \"fincstp\\n\"\n|;
847 # print qq| \"frstor %$stateargnum\\n\"\n|;
849 print qq| :|;
857 print qq|$prefix\"=m\" \($result->{name}\)|;
862 print qq|\n|;
870 print qq|$prefix\"m\" \($arg->{name}\)|;
879 print qq|$prefix\"m\" \($result->{name}\)|;
884 print qq|$prefix\"m\" \(state[0]\)\n|;
895 print qq|$prefix\"$register\"|;
900 print qq|\n|;
902 print qq| \);\n|;
903 print qq|\n|;
907 print qq| if \(|;
920 print qq|${prefix}\($result->{name}.ud[0] & $values[0]UL\) == $values[1]UL|;
924 print qq|${prefix}\($result->{name}.uw[0] & $values[0]\) == $values[1]|;
932 print qq|${prefix}eq_float($result->{name}.$subtype\[$value\], $values[$value]$suffix)|;
936 print qq|${prefix}eq_double($result->{name}.$subtype\[$value\], $values[$value]$suffix)|;
940 print qq|${prefix}$result->{name}.$subtype\[$value\] == $values[$value]$suffix|;
950 print qq| \)\n|;
951 print qq| \{\n|;
952 print qq| printf("$test ... ok\\n");\n|;
953 print qq| \}\n|;
954 print qq| else\n|;
955 print qq| \{\n|;
956 print qq| printf("$test ... not ok\\n");\n|;
967 print qq| printf(" eflags & 0x%lx = 0x%lx (expected 0x%lx)\\n", $values[0]UL, $result->{name}.ud\[0\] & $values[0]UL, $values[1]UL);\n|;
971 print qq| printf(" $type & 0x%x = 0x%x (expected 0x%x)\\n", $values[0], $result->{name}.uw\[0\] & $values[0], $values[1]);\n|;
977 print qq| printf(" $result->{name}.$subtype\[$value\] = $SubTypeFormats{$subtype} (expected $SubTypeFormats{$subtype})\\n", $result->{name}.$subtype\[$value\], $values[$value]$suffix);\n|;
982 print qq| \}\n|;
986 print qq| printf("$test ... ok\\n");\n|;
989 print qq| \}\n|;
990 print qq| else\n|;
991 print qq| \{\n|;
992 print qq| printf("$test ... failed\\n");\n|;
993 print qq| \}\n|;
994 print qq|\n|;
995 print qq| return;\n|;
996 print qq|\}\n|;
997 print qq|\n|;
1000 print qq|int main(int argc, char **argv)\n|;
1001 print qq|\{\n|;
1002 print qq| signal(SIGILL, handle_sigill);\n|;
1003 print qq|\n|;
1007 print qq| $test();\n|;
1010 print qq|\n|;
1011 print qq| exit(0);\n|;
1012 print qq|\}\n|;