Lines Matching refs:qq
192 print qq|static void $test(void)\n|;
193 print qq|\{\n|;
233 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
239 print qq|,| if $valuec > 0;
240 print qq| $value$SubTypeSuffixes{$subtype}|;
244 print qq| \} \};\n|;
270 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
276 print qq|,| if $valuec > 0;
277 print qq| $value$SubTypeSuffixes{$subtype}|;
281 print qq| \} \};\n|;
355 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
361 print qq|,| if $valuec > 0;
362 print qq| $value$SubTypeSuffixes{$subtype}|;
366 print qq| \} \};\n|;
392 print qq| $ArgTypes{$type} $name = \{ .$subtype = \{|;
398 print qq|,| if $valuec > 0;
399 print qq| $value$SubTypeSuffixes{$subtype}|;
403 print qq| \} \};\n|;
480 print qq| $ArgTypes{$type} $name|;
481 print qq| = arg$index| if $type =~ /^m(8|16|32|64|128)$/;
482 print qq|;\n|;
503 print qq| $ArgTypes{$type} $name;\n|;
522 print qq| $ArgTypes{$type} $name;\n|;
540 print qq| $ArgTypes{eflags} $name;\n|;
564 print qq| $ArgTypes{fpucw} $name;\n|;
588 print qq| $ArgTypes{fpusw} $name;\n|;
632 print qq| char state\[108\];\n|;
633 print qq|\n|;
634 print qq| if (sigsetjmp(catchpoint, 1) == 0)\n|;
635 print qq| \{\n|;
636 print qq| asm\(\n|;
637 print qq| \"fsave %$stateargnum\\n\"\n|;
645 print qq| \"movb %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
649 print qq| \"movw %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
653 print qq| \"movl %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
657 print qq| \"movq %$arg->{argnum}, %%$arg->{register}\\n\"\n|;
661 print qq| \"movlps 0%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
662 print qq| \"movhps 8%$arg->{argnum}, %%$arg->{register}\\n\"\n|;
676 print qq| \"flds %$arg->{argnum}\\n\"\n|;
680 print qq| \"fldl %$arg->{argnum}\\n\"\n|;
685 print qq| \"fldz\\n\"\n|;
691 print qq| \"pushfl\\n\"\n|;
692 print qq| \"andl \$$eflagsmask, (%%esp)\\n\"\n| if defined($eflagsmask);
693 print qq| \"orl \$$eflagsset, (%%esp)\\n\"\n| if defined($eflagsset);
694 print qq| \"popfl\\n\"\n|;
699 print qq| \"subl \$2, %%esp\\n\"\n|;
700 print qq| \"fstcw (%%esp)\\n\"\n|;
701 print qq| \"andw \$$fpucwmask, (%%esp)\\n\"\n| if defined($fpucwmask);
702 print qq| \"orw \$$fpucwset, (%%esp)\\n\"\n| if defined($fpucwset);
703 print qq| \"fldcw (%%esp)\\n\"\n|;
704 print qq| \"addl \$2, %%esp\\n\"\n|;
707 print qq| \"$insn|;
717 print qq|$prefix%%$arg->{register}|;
725 print qq|$prefix%%$register|;
731 print qq|$prefix%$arg->{result}->{argnum}|;
735 print qq|$prefix%$arg->{argnum}|;
740 print qq|$prefix\$$arg->{value}|;
746 print qq|\\n\"\n|;
754 print qq| \"movb %%$result->{register}, %$result->{argnum}\\n\"\n|;
758 print qq| \"movw %%$result->{register}, %$result->{argnum}\\n\"\n|;
762 print qq| \"movl %%$result->{register}, %$result->{argnum}\\n\"\n|;
766 print qq| \"movq %%$result->{register}, %$result->{argnum}\\n\"\n|;
770 print qq| \"movlps %%$result->{register}, 0%$result->{argnum}\\n\"\n|;
771 print qq| \"movhps %%$result->{register}, 8%$result->{argnum}\\n\"\n|;
779 print qq| \"pushfl\\n\"\n|;
780 print qq| \"popl %$result->{argnum}\\n\"\n|;
784 print qq| \"fstcw %$result->{argnum}\\n\"\n|;
788 print qq| \"fstsw %$result->{argnum}\\n\"\n|;
798 print qq| \"fstps %$result->{argnum}\\n\"\n|;
802 print qq| \"fstpl %$result->{argnum}\\n\"\n|;
807 print qq| \"fincstp\\n\"\n|;
811 print qq| \"frstor %$stateargnum\\n\"\n|;
812 print qq| \"cld\\n\"\n|;
814 print qq| :|;
822 print qq|$prefix\"=m\" \($result->{name}\)|;
827 print qq|\n|;
835 print qq|$prefix\"m\" \($arg->{name}\)|;
844 print qq|$prefix\"m\" \($result->{name}\)|;
849 print qq|$prefix\"m\" \(state[0]\)\n|;
857 print qq|$prefix\"$arg->{register}\"|;
862 print qq|\n|;
864 print qq| \);\n|;
865 print qq|\n|;
869 print qq| if \(|;
882 print qq|${prefix}\($result->{name}.ud[0] & $values[0]UL\) == $values[1]UL|;
886 print qq|${prefix}\($result->{name}.uw[0] & $values[0]\) == $values[1]|;
894 print qq|${prefix}eq_float($result->{name}.$subtype\[$value\], $values[$value]$suffix)|;
898 print qq|${prefix}eq_double($result->{name}.$subtype\[$value\], $values[$value]$suffix)|;
902 print qq|${prefix}$result->{name}.$subtype\[$value\] == $values[$value]$suffix|;
912 print qq| \)\n|;
913 print qq| \{\n|;
914 print qq| printf("$test ... ok\\n");\n|;
915 print qq| \}\n|;
916 print qq| else\n|;
917 print qq| \{\n|;
918 print qq| printf("$test ... not ok\\n");\n|;
929 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|;
933 print qq| printf(" $type & 0x%x = 0x%x (expected 0x%x)\\n", $values[0], $result->{name}.uw\[0\] & $values[0], $values[1]);\n|;
939 print qq| printf(" $result->{name}.$subtype\[$value\] = $SubTypeFormats{$subtype} (expected $SubTypeFormats{$subtype})\\n", $result->{name}.$subtype\[$value\], $values[$value]$suffix);\n|;
944 print qq| \}\n|;
948 print qq| printf("$test ... ok\\n");\n|;
951 print qq| \}\n|;
952 print qq| else\n|;
953 print qq| \{\n|;
954 print qq| printf("$test ... failed\\n");\n|;
955 print qq| \}\n|;
956 print qq|\n|;
957 print qq| return;\n|;
958 print qq|\}\n|;
959 print qq|\n|;
962 print qq|int main(int argc, char **argv)\n|;
963 print qq|\{\n|;
964 print qq| signal(SIGILL, handle_sigill);\n|;
965 print qq|\n|;
969 print qq| $test();\n|;
972 print qq|\n|;
973 print qq| exit(0);\n|;
974 print qq|\}\n|;