llvm.org GIT mirror llvm / 8c66c62
[WebAssembly] Tighten up some regexes in some tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258295 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 4 years ago
4 changed file(s) with 100 addition(s) and 100 deletion(s). Raw diff Collapse all Expand all
9494 ; CHECK-LABEL: test2:
9595 ; CHECK-NOT: local
9696 ; CHECK: block{{$}}
97 ; CHECK: br_if {{[^,]*}}, 0{{$}}
97 ; CHECK: br_if {{[^,]+}}, 0{{$}}
9898 ; CHECK: .LBB2_1:
9999 ; CHECK: br_if ${{[0-9]+}}, 0{{$}}
100100 ; CHECK: .LBB2_2:
102102 ; OPT-LABEL: test2:
103103 ; OPT-NOT: local
104104 ; OPT: block{{$}}
105 ; OPT: br_if {{[^,]*}}, 0{{$}}
105 ; OPT: br_if {{[^,]+}}, 0{{$}}
106106 ; OPT: .LBB2_1:
107107 ; OPT: br_if ${{[0-9]+}}, 0{{$}}
108108 ; OPT: .LBB2_2:
135135 ; CHECK-LABEL: doublediamond:
136136 ; CHECK: block{{$}}
137137 ; CHECK-NEXT: block{{$}}
138 ; CHECK: br_if ${{[^,]*}}, 0{{$}}
138 ; CHECK: br_if ${{[^,]+}}, 0{{$}}
139139 ; CHECK: br 1{{$}}
140140 ; CHECK: .LBB3_2:
141141 ; CHECK-NEXT: end_block{{$}}
142142 ; CHECK: block{{$}}
143 ; CHECK: br_if ${{[^,]*}}, 0{{$}}
143 ; CHECK: br_if ${{[^,]+}}, 0{{$}}
144144 ; CHECK: br 1{{$}}
145145 ; CHECK: .LBB3_4:
146146 ; CHECK-NEXT: end_block{{$}}
151151 ; OPT-LABEL: doublediamond:
152152 ; OPT: block{{$}}
153153 ; OPT-NEXT: block{{$}}
154 ; OPT: br_if ${{[^,]*}}, 0{{$}}
154 ; OPT: br_if ${{[^,]+}}, 0{{$}}
155155 ; OPT: block{{$}}
156 ; OPT: br_if ${{[^,]*}}, 0{{$}}
156 ; OPT: br_if ${{[^,]+}}, 0{{$}}
157157 ; OPT: br 1{{$}}
158158 ; OPT: .LBB3_4:
159159 ; OPT: .LBB3_5:
217217 ; OPT-LABEL: diamond:
218218 ; OPT: block{{$}}
219219 ; OPT: block{{$}}
220 ; OPT: br_if {{[^,]*}}, 0{{$}}
220 ; OPT: br_if {{[^,]+}}, 0{{$}}
221221 ; OPT: br 1{{$}}
222222 ; OPT: .LBB5_2:
223223 ; OPT: .LBB5_3:
284284 ; OPT-NOT: br
285285 ; OPT: .LBB8_1:
286286 ; OPT: loop{{$}}
287 ; OPT: br_if {{[^,]*}}, 0{{$}}
287 ; OPT: br_if {{[^,]+}}, 0{{$}}
288288 ; OPT-NEXT: end_loop{{$}}
289289 ; OPT: i32.const $push{{[0-9]+}}=, 0{{$}}
290290 ; OPT-NEXT: return $pop{{[0-9]+}}{{$}}
350350 ; OPT-LABEL: ifelse_earlyexits:
351351 ; OPT: block{{$}}
352352 ; OPT: block{{$}}
353 ; OPT: br_if {{[^,]*}}, 0{{$}}
353 ; OPT: br_if {{[^,]+}}, 0{{$}}
354354 ; OPT: br_if $1, 1{{$}}
355355 ; OPT: br 1{{$}}
356356 ; OPT: .LBB10_3:
398398 ; OPT: loop{{$}}
399399 ; OPT: block{{$}}
400400 ; OPT: block{{$}}
401 ; OPT: br_if {{[^,]*}}, 0{{$}}
401 ; OPT: br_if {{[^,]+}}, 0{{$}}
402402 ; OPT: block{{$}}
403 ; OPT: br_if {{[^,]*}}, 0{{$}}
403 ; OPT: br_if {{[^,]+}}, 0{{$}}
404404 ; OPT: br 2{{$}}
405405 ; OPT: .LBB11_4:
406406 ; OPT-NEXT: end_block{{$}}
483483 ; CHECK: block{{$}}
484484 ; CHECK-NEXT: block{{$}}
485485 ; CHECK-NEXT: block{{$}}
486 ; CHECK: br_if $pop{{[0-9]*}}, 0{{$}}
486 ; CHECK: br_if $pop{{[0-9]+}}, 0{{$}}
487487 ; CHECK-NEXT: block{{$}}
488 ; CHECK: br_if $pop{{[0-9]*}}, 0{{$}}
489 ; CHECK: br_if $pop{{[0-9]*}}, 2{{$}}
488 ; CHECK: br_if $pop{{[0-9]+}}, 0{{$}}
489 ; CHECK: br_if $pop{{[0-9]+}}, 2{{$}}
490490 ; CHECK-NEXT: .LBB13_3:
491491 ; CHECK-NEXT: end_block{{$}}
492492 ; CHECK-NEXT: return{{$}}
493493 ; CHECK-NEXT: .LBB13_4:
494 ; CHECK: br_if $pop{{[0-9]*}}, 1{{$}}
495 ; CHECK: br_if $pop{{[0-9]*}}, 0{{$}}
494 ; CHECK: br_if $pop{{[0-9]+}}, 1{{$}}
495 ; CHECK: br_if $pop{{[0-9]+}}, 0{{$}}
496496 ; CHECK-NEXT: return{{$}}
497497 ; CHECK-NEXT: .LBB13_7:
498498 ; CHECK-NEXT: end_block{{$}}
505505 ; OPT: block{{$}}
506506 ; OPT-NEXT: block{{$}}
507507 ; OPT-NEXT: block{{$}}
508 ; OPT: br_if $pop{{[0-9]*}}, 0{{$}}
508 ; OPT: br_if $pop{{[0-9]+}}, 0{{$}}
509509 ; OPT-NEXT: block{{$}}
510 ; OPT: br_if $pop{{[0-9]*}}, 0{{$}}
511 ; OPT: br_if $pop{{[0-9]*}}, 2{{$}}
510 ; OPT: br_if $pop{{[0-9]+}}, 0{{$}}
511 ; OPT: br_if $pop{{[0-9]+}}, 2{{$}}
512512 ; OPT-NEXT: .LBB13_3:
513513 ; OPT-NEXT: end_block{{$}}
514514 ; OPT-NEXT: return{{$}}
515515 ; OPT-NEXT: .LBB13_4:
516 ; OPT: br_if $pop{{[0-9]*}}, 1{{$}}
517 ; OPT: br_if $pop{{[0-9]*}}, 0{{$}}
516 ; OPT: br_if $pop{{[0-9]+}}, 1{{$}}
517 ; OPT: br_if $pop{{[0-9]+}}, 0{{$}}
518518 ; OPT-NEXT: return{{$}}
519519 ; OPT-NEXT: .LBB13_7:
520520 ; OPT-NEXT: end_block{{$}}
551551 ; CHECK: .LBB14_1:
552552 ; CHECK-NEXT: block{{$}}
553553 ; CHECK-NEXT: loop{{$}}
554 ; CHECK: br_if {{[^,]*}}, 2{{$}}
555 ; CHECK: br_if {{[^,]*}}, 0{{$}}
554 ; CHECK: br_if {{[^,]+}}, 2{{$}}
555 ; CHECK: br_if {{[^,]+}}, 0{{$}}
556556 ; CHECK-NEXT: end_loop{{$}}
557557 ; CHECK: return{{$}}
558558 ; CHECK-NEXT: .LBB14_4:
561561 ; OPT: .LBB14_1:
562562 ; OPT-NEXT: block{{$}}
563563 ; OPT-NEXT: loop{{$}}
564 ; OPT: br_if {{[^,]*}}, 2{{$}}
565 ; OPT: br_if {{[^,]*}}, 0{{$}}
564 ; OPT: br_if {{[^,]+}}, 2{{$}}
565 ; OPT: br_if {{[^,]+}}, 0{{$}}
566566 ; OPT-NEXT: end_loop{{$}}
567567 ; OPT: return{{$}}
568568 ; OPT-NEXT: .LBB14_4:
598598 ; CHECK-NEXT: block{{$}}
599599 ; CHECK-NEXT: loop{{$}}
600600 ; CHECK-NOT: block
601 ; CHECK: br_if {{[^,]*}}, 3{{$}}
602 ; CHECK-NOT: block
603 ; CHECK: br_if {{[^,]*}}, 2{{$}}
604 ; CHECK-NOT: block
605 ; CHECK: br_if {{[^,]*}}, 0{{$}}
601 ; CHECK: br_if {{[^,]+}}, 3{{$}}
602 ; CHECK-NOT: block
603 ; CHECK: br_if {{[^,]+}}, 2{{$}}
604 ; CHECK-NOT: block
605 ; CHECK: br_if {{[^,]+}}, 0{{$}}
606606 ; CHECK-NEXT: end_loop{{$}}
607607 ; CHECK-NOT: block
608608 ; CHECK: return{{$}}
619619 ; OPT-NEXT: block{{$}}
620620 ; OPT-NEXT: loop{{$}}
621621 ; OPT-NOT: block
622 ; OPT: br_if {{[^,]*}}, 3{{$}}
623 ; OPT-NOT: block
624 ; OPT: br_if {{[^,]*}}, 2{{$}}
625 ; OPT-NOT: block
626 ; OPT: br_if {{[^,]*}}, 0{{$}}
622 ; OPT: br_if {{[^,]+}}, 3{{$}}
623 ; OPT-NOT: block
624 ; OPT: br_if {{[^,]+}}, 2{{$}}
625 ; OPT-NOT: block
626 ; OPT: br_if {{[^,]+}}, 0{{$}}
627627 ; OPT-NEXT: end_loop{{$}}
628628 ; OPT-NOT: block
629629 ; OPT: return{{$}}
671671 ; CHECK-NEXT: loop{{$}}
672672 ; CHECK-NOT: block
673673 ; CHECK: block{{$}}
674 ; CHECK: br_if {{[^,]*}}, 0{{$}}
675 ; CHECK-NOT: block
676 ; CHECK: br_if {{[^,]*}}, 1{{$}}
674 ; CHECK: br_if {{[^,]+}}, 0{{$}}
675 ; CHECK-NOT: block
676 ; CHECK: br_if {{[^,]+}}, 1{{$}}
677677 ; CHECK-NOT: block
678678 ; CHECK: unreachable
679679 ; CHECK-NEXT: .LBB16_4:
680680 ; CHECK-NEXT: end_block{{$}}
681681 ; CHECK-NOT: block
682 ; CHECK: br_if {{[^,]*}}, 0{{$}}
682 ; CHECK: br_if {{[^,]+}}, 0{{$}}
683683 ; CHECK-NEXT: end_loop{{$}}
684684 ; CHECK-NOT: block
685685 ; CHECK: unreachable
689689 ; OPT-NOT: block
690690 ; OPT: block{{$}}
691691 ; OPT-NOT: block
692 ; OPT: br_if {{[^,]*}}, 0{{$}}
693 ; OPT-NOT: block
694 ; OPT: br_if {{[^,]*}}, 1{{$}}
692 ; OPT: br_if {{[^,]+}}, 0{{$}}
693 ; OPT-NOT: block
694 ; OPT: br_if {{[^,]+}}, 1{{$}}
695695 ; OPT-NOT: block
696696 ; OPT: unreachable
697697 ; OPT-NEXT: .LBB16_4:
698698 ; OPT-NEXT: end_block{{$}}
699699 ; OPT-NOT: block
700 ; OPT: br_if {{[^,]*}}, 0{{$}}
700 ; OPT: br_if {{[^,]+}}, 0{{$}}
701701 ; OPT-NEXT: end_loop{{$}}
702702 ; OPT-NOT: block
703703 ; OPT: unreachable
734734 ; CHECK-NEXT: loop{{$}}
735735 ; CHECK-NEXT: block{{$}}
736736 ; CHECK-NOT: block
737 ; CHECK: br_if {{[^,]*}}, 0{{$}}
738 ; CHECK-NOT: block
739 ; CHECK: br_if {{[^,]*}}, 1{{$}}
737 ; CHECK: br_if {{[^,]+}}, 0{{$}}
738 ; CHECK-NOT: block
739 ; CHECK: br_if {{[^,]+}}, 1{{$}}
740740 ; CHECK-NEXT: .LBB17_3:
741741 ; CHECK-NEXT: end_block{{$}}
742742 ; CHECK-NEXT: loop{{$}}
743 ; CHECK-NEXT: i32.const $push{{[^,]*}}, 0{{$}}
744 ; CHECK-NEXT: br_if {{[^,]*}}, 0{{$}}
743 ; CHECK-NEXT: i32.const $push{{[^,]+}}, 0{{$}}
744 ; CHECK-NEXT: br_if {{[^,]+}}, 0{{$}}
745745 ; CHECK-NEXT: br 2{{$}}
746746 ; CHECK-NEXT: .LBB17_4:
747747 ; OPT-LABEL: test8:
749749 ; OPT-NEXT: loop{{$}}
750750 ; OPT-NEXT: block{{$}}
751751 ; OPT-NOT: block
752 ; OPT: br_if {{[^,]*}}, 0{{$}}
753 ; OPT-NOT: block
754 ; OPT: br_if {{[^,]*}}, 1{{$}}
752 ; OPT: br_if {{[^,]+}}, 0{{$}}
753 ; OPT-NOT: block
754 ; OPT: br_if {{[^,]+}}, 1{{$}}
755755 ; OPT-NEXT: .LBB17_3:
756756 ; OPT-NEXT: end_block{{$}}
757757 ; OPT-NEXT: loop{{$}}
758 ; OPT-NEXT: i32.const $push{{[^,]*}}, 0{{$}}
759 ; OPT-NEXT: br_if {{[^,]*}}, 0{{$}}
758 ; OPT-NEXT: i32.const $push{{[^,]+}}, 0{{$}}
759 ; OPT-NEXT: br_if {{[^,]+}}, 0{{$}}
760760 ; OPT-NEXT: br 2{{$}}
761761 ; OPT-NEXT: .LBB17_4:
762762 define i32 @test8() {
783783 ; CHECK: .LBB18_1:
784784 ; CHECK-NEXT: loop{{$}}
785785 ; CHECK-NOT: block
786 ; CHECK: br_if {{[^,]*}}, 1{{$}}
786 ; CHECK: br_if {{[^,]+}}, 1{{$}}
787787 ; CHECK-NEXT: .LBB18_2:
788788 ; CHECK-NEXT: loop{{$}}
789789 ; CHECK-NOT: block
790790 ; CHECK: block{{$}}
791791 ; CHECK-NOT: block
792 ; CHECK: br_if {{[^,]*}}, 0{{$}}
793 ; CHECK-NOT: block
794 ; CHECK: br_if {{[^,]*}}, 1{{$}}
792 ; CHECK: br_if {{[^,]+}}, 0{{$}}
793 ; CHECK-NOT: block
794 ; CHECK: br_if {{[^,]+}}, 1{{$}}
795795 ; CHECK-NEXT: br 3{{$}}
796796 ; CHECK-NEXT: .LBB18_4:
797797 ; CHECK-NEXT: end_block{{$}}
798798 ; CHECK-NOT: block
799 ; CHECK: br_if {{[^,]*}}, 0{{$}}
799 ; CHECK: br_if {{[^,]+}}, 0{{$}}
800800 ; CHECK-NEXT: br 2{{$}}
801801 ; CHECK-NEXT: .LBB18_5:
802802 ; CHECK-NOT: block
805805 ; OPT: .LBB18_1:
806806 ; OPT-NEXT: loop{{$}}
807807 ; OPT-NOT: block
808 ; OPT: br_if {{[^,]*}}, 1{{$}}
808 ; OPT: br_if {{[^,]+}}, 1{{$}}
809809 ; OPT-NEXT: .LBB18_2:
810810 ; OPT-NEXT: loop{{$}}
811811 ; OPT-NOT: block
812812 ; OPT: block{{$}}
813813 ; OPT-NOT: block
814 ; OPT: br_if {{[^,]*}}, 0{{$}}
815 ; OPT-NOT: block
816 ; OPT: br_if {{[^,]*}}, 1{{$}}
814 ; OPT: br_if {{[^,]+}}, 0{{$}}
815 ; OPT-NOT: block
816 ; OPT: br_if {{[^,]+}}, 1{{$}}
817817 ; OPT-NEXT: br 3{{$}}
818818 ; OPT-NEXT: .LBB18_4:
819819 ; OPT-NEXT: end_block{{$}}
820820 ; OPT-NOT: block
821 ; OPT: br_if {{[^,]*}}, 0{{$}}
821 ; OPT: br_if {{[^,]+}}, 0{{$}}
822822 ; OPT-NEXT: br 2{{$}}
823823 ; OPT-NEXT: .LBB18_5:
824824 ; OPT-NOT: block
861861 ; CHECK: .LBB19_1:
862862 ; CHECK-NEXT: loop{{$}}
863863 ; CHECK-NOT: block
864 ; CHECK: br_if {{[^,]*}}, 0{{$}}
864 ; CHECK: br_if {{[^,]+}}, 0{{$}}
865865 ; CHECK-NEXT: .LBB19_2:
866866 ; CHECK-NEXT: block{{$}}
867867 ; CHECK-NEXT: loop{{$}}
869869 ; CHECK: .LBB19_3:
870870 ; CHECK-NEXT: loop{{$}}
871871 ; CHECK-NOT: block
872 ; CHECK: br_if {{[^,]*}}, 5{{$}}
873 ; CHECK-NOT: block
874 ; CHECK: tableswitch {{[^,]*}}, 0, 0, 1, 5, 2, 4{{$}}
872 ; CHECK: br_if {{[^,]+}}, 5{{$}}
873 ; CHECK-NOT: block
874 ; CHECK: tableswitch {{[^,]+}}, 0, 0, 1, 5, 2, 4{{$}}
875875 ; CHECK-NEXT: .LBB19_5:
876876 ; CHECK-NEXT: end_loop{{$}}
877877 ; CHECK-NEXT: end_loop{{$}}
885885 ; OPT: .LBB19_1:
886886 ; OPT-NEXT: loop{{$}}
887887 ; OPT-NOT: block
888 ; OPT: br_if {{[^,]*}}, 0{{$}}
888 ; OPT: br_if {{[^,]+}}, 0{{$}}
889889 ; OPT-NEXT: .LBB19_2:
890890 ; OPT-NEXT: block{{$}}
891891 ; OPT-NEXT: loop{{$}}
893893 ; OPT: .LBB19_3:
894894 ; OPT-NEXT: loop{{$}}
895895 ; OPT-NOT: block
896 ; OPT: br_if {{[^,]*}}, 5{{$}}
897 ; OPT-NOT: block
898 ; OPT: tableswitch {{[^,]*}}, 0, 0, 1, 5, 2, 4{{$}}
896 ; OPT: br_if {{[^,]+}}, 5{{$}}
897 ; OPT-NOT: block
898 ; OPT: tableswitch {{[^,]+}}, 0, 0, 1, 5, 2, 4{{$}}
899899 ; OPT-NEXT: .LBB19_5:
900900 ; OPT-NEXT: end_loop{{$}}
901901 ; OPT-NEXT: end_loop{{$}}
947947 ; CHECK-NEXT: block{{$}}
948948 ; CHECK-NEXT: block{{$}}
949949 ; CHECK-NEXT: block{{$}}
950 ; CHECK: br_if {{[^,]*}}, 0{{$}}
950 ; CHECK: br_if {{[^,]+}}, 0{{$}}
951951 ; CHECK-NEXT: block{{$}}
952952 ; CHECK-NOT: block
953 ; CHECK: br_if {{[^,]*}}, 0{{$}}
954 ; CHECK-NOT: block
955 ; CHECK: br_if {{[^,]*}}, 2{{$}}
953 ; CHECK: br_if {{[^,]+}}, 0{{$}}
954 ; CHECK-NOT: block
955 ; CHECK: br_if {{[^,]+}}, 2{{$}}
956956 ; CHECK-NEXT: .LBB20_3:
957957 ; CHECK-NEXT: end_block{{$}}
958958 ; CHECK-NOT: block
960960 ; CHECK-NEXT: .LBB20_4:
961961 ; CHECK-NEXT: end_block{{$}}
962962 ; CHECK-NOT: block
963 ; CHECK: br_if {{[^,]*}}, 2{{$}}
964 ; CHECK-NOT: block
965 ; CHECK: br_if {{[^,]*}}, 1{{$}}
963 ; CHECK: br_if {{[^,]+}}, 2{{$}}
964 ; CHECK-NOT: block
965 ; CHECK: br_if {{[^,]+}}, 1{{$}}
966966 ; CHECK-NEXT: .LBB20_6:
967967 ; CHECK-NEXT: end_block{{$}}
968968 ; CHECK-NOT: block
983983 ; OPT-NOT: block
984984 ; OPT: br_if $0, 0{{$}}
985985 ; OPT-NOT: block
986 ; OPT: br_if {{[^,]*}}, 2{{$}}
986 ; OPT: br_if {{[^,]+}}, 2{{$}}
987987 ; OPT-NEXT: .LBB20_3:
988988 ; OPT-NEXT: end_block{{$}}
989989 ; OPT-NOT: block
10431043 ; CHECK: block{{$}}
10441044 ; CHECK-NEXT: block{{$}}
10451045 ; CHECK-NEXT: block{{$}}
1046 ; CHECK: br_if {{[^,]*}}, 0{{$}}
1047 ; CHECK-NOT: block
1048 ; CHECK: br_if {{[^,]*}}, 2{{$}}
1049 ; CHECK-NOT: block
1050 ; CHECK: br_if {{[^,]*}}, 2{{$}}
1046 ; CHECK: br_if {{[^,]+}}, 0{{$}}
1047 ; CHECK-NOT: block
1048 ; CHECK: br_if {{[^,]+}}, 2{{$}}
1049 ; CHECK-NOT: block
1050 ; CHECK: br_if {{[^,]+}}, 2{{$}}
10511051 ; CHECK-NEXT: br 1{{$}}
10521052 ; CHECK-NEXT: .LBB21_4:
10531053 ; CHECK-NEXT: end_block{{$}}
10541054 ; CHECK-NOT: block
1055 ; CHECK: br_if {{[^,]*}}, 1{{$}}
1056 ; CHECK-NOT: block
1057 ; CHECK: br_if {{[^,]*}}, 1{{$}}
1055 ; CHECK: br_if {{[^,]+}}, 1{{$}}
1056 ; CHECK-NOT: block
1057 ; CHECK: br_if {{[^,]+}}, 1{{$}}
10581058 ; CHECK-NEXT: .LBB21_6:
10591059 ; CHECK-NEXT: end_block{{$}}
10601060 ; CHECK-NEXT: return{{$}}
10701070 ; OPT: block{{$}}
10711071 ; OPT-NEXT: block{{$}}
10721072 ; OPT-NEXT: block{{$}}
1073 ; OPT: br_if {{[^,]*}}, 0{{$}}
1074 ; OPT-NOT: block
1075 ; OPT: br_if {{[^,]*}}, 2{{$}}
1076 ; OPT-NOT: block
1077 ; OPT: br_if {{[^,]*}}, 2{{$}}
1073 ; OPT: br_if {{[^,]+}}, 0{{$}}
1074 ; OPT-NOT: block
1075 ; OPT: br_if {{[^,]+}}, 2{{$}}
1076 ; OPT-NOT: block
1077 ; OPT: br_if {{[^,]+}}, 2{{$}}
10781078 ; OPT-NEXT: br 1{{$}}
10791079 ; OPT-NEXT: .LBB21_4:
10801080 ; OPT-NEXT: end_block{{$}}
10811081 ; OPT-NOT: block
1082 ; OPT: br_if {{[^,]*}}, 1{{$}}
1083 ; OPT-NOT: block
1084 ; OPT: br_if {{[^,]*}}, 1{{$}}
1082 ; OPT: br_if {{[^,]+}}, 1{{$}}
1083 ; OPT-NOT: block
1084 ; OPT: br_if {{[^,]+}}, 1{{$}}
10851085 ; OPT-NEXT: .LBB21_6:
10861086 ; OPT-NEXT: end_block{{$}}
10871087 ; OPT-NEXT: return{{$}}
88 ; RUN: llc < %s -asm-verbose=false -mtriple=wasm32-unknown-unknown -mcpu=invalidcpu 2>&1 | FileCheck %s --check-prefix=INVALID
99 ; RUN: llc < %s -asm-verbose=false -mtriple=wasm64-unknown-unknown -mcpu=invalidcpu 2>&1 | FileCheck %s --check-prefix=INVALID
1010
11 ; CHECK-NOT: {{.*}} is not a recognized processor for this target
12 ; INVALID: {{.*}} is not a recognized processor for this target
11 ; CHECK-NOT: is not a recognized processor for this target
12 ; INVALID: {{.+}} is not a recognized processor for this target
1313
1414 define i32 @f(i32 %i_like_the_web) {
1515 ret i32 %i_like_the_web
66 target triple = "wasm32-unknown-unknown"
77
88 ; CHECK-LABEL: single_block:
9 ; CHECK-NOT: .local
9 ; CHECK-NOT: local
1010 ; CHECK: i32.const $push{{[0-9]+}}=, 0{{$}}
1111 ; CHECK: i32.store $push[[STORE:[0-9]+]]=, 0($0), $pop{{[0-9]+}}{{$}}
1212 ; CHECK: return $pop[[STORE]]{{$}}
2020 ; CHECK: block{{$}}
2121 ; CHECK: block{{$}}
2222 ; CHECK: block{{$}}
23 ; CHECK: tableswitch {{[^,]*}}, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5{{$}}
23 ; CHECK: tableswitch {{[^,]+}}, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5{{$}}
2424 ; CHECK: .LBB0_2:
2525 ; CHECK: call foo0@FUNCTION{{$}}
2626 ; CHECK: .LBB0_3:
100100 ; CHECK: block{{$}}
101101 ; CHECK: block{{$}}
102102 ; CHECK: block{{$}}
103 ; CHECK: tableswitch {{[^,]*}}, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5{{$}}
103 ; CHECK: tableswitch {{[^,]+}}, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 4, 5{{$}}
104104 ; CHECK: .LBB1_2:
105105 ; CHECK: call foo0@FUNCTION{{$}}
106106 ; CHECK: .LBB1_3: