llvm.org GIT mirror llvm / 2f0722c
Make Test More Thorough Check that all ADD patters are processed. Add a SUB test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141314 91177308-0d34-0410-b5e6-96231b3b80d8 David Greene 7 years ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8282 // Define intrinsics
8383 def int_x86_sse2_add_ps : Intrinsic<"addps">;
8484 def int_x86_sse2_add_pd : Intrinsic<"addpd">;
85 def int_x86_sse2_sub_ps : Intrinsic<"subps">;
86 def int_x86_sse2_sub_pd : Intrinsic<"subpd">;
8587 def INTRINSIC : Intrinsic<"Dummy">;
8688 def bitconvert;
8789 def add;
90 def sub;
8891
8992 class MakePatImpl patterns> : Pat;
9093 class MakePat patterns,
125128
126129 // CHECK: [(set VR128:$dst, (int_x86_sse2_add_pd VR128:$src1, VR128:$src2))]
127130 // CHECK: [(set VR128:$dst, (int_x86_sse2_add_ps VR128:$src1, VR128:$src2))]
131 // CHECK: (set VR128:$dst, (add (int_x86_sse2_add_ps VR128:$src1, VR128:$src2)))
132 // CHECK: (set VR128:$dst, (add (int_x86_sse2_add_pd VR128:$src1, VR128:$src2)))
133
134 defm SUB : arith<0x59, "sub", "int_x86_sse2_subSUFFIX",
135 // rr Patterns
136 [[(set REGCLASS:$dst, (INTRINSIC REGCLASS:$src1, REGCLASS:$src2))]]>;
137
138 // CHECK: [(set VR128:$dst, (int_x86_sse2_sub_pd VR128:$src1, VR128:$src2))]
139 // CHECK: [(set VR128:$dst, (int_x86_sse2_sub_ps VR128:$src1, VR128:$src2))]