Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: tests_lit/llvm2ice_tests/commutativity.ll

Issue 1472623002: Unify alloca, outgoing arg, and prolog construction (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review fixes. Also removed StackAdjustment. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests_lit/llvm2ice_tests/alloc.ll ('k') | tests_lit/llvm2ice_tests/ebp_args.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Test the lowering sequence for commutative operations. If there is a source 1 ; Test the lowering sequence for commutative operations. If there is a source
2 ; operand whose lifetime ends in an operation, it should be the first operand, 2 ; operand whose lifetime ends in an operation, it should be the first operand,
3 ; eliminating the need for a move to start the new lifetime. 3 ; eliminating the need for a move to start the new lifetime.
4 4
5 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \ 5 ; RUN: %if --need=target_X8632 --command %p2i --filetype=obj --disassemble \
6 ; RUN: --target x8632 -i %s --args -O2 \ 6 ; RUN: --target x8632 -i %s --args -O2 \
7 ; RUN: | %if --need=target_X8632 --command FileCheck %s 7 ; RUN: | %if --need=target_X8632 --command FileCheck %s
8 8
9 define internal i32 @integerAddLeft(i32 %a, i32 %b) { 9 define internal i32 @integerAddLeft(i32 %a, i32 %b) {
10 entry: 10 entry:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ; CHECK-NEXT: imul {{e..}},{{e..}} 54 ; CHECK-NEXT: imul {{e..}},{{e..}}
55 ; CHECK-NEXT: imul {{e..}},{{e..}} 55 ; CHECK-NEXT: imul {{e..}},{{e..}}
56 56
57 define internal float @floatAddLeft(float %a, float %b) { 57 define internal float @floatAddLeft(float %a, float %b) {
58 entry: 58 entry:
59 %tmp = fadd float %a, %b 59 %tmp = fadd float %a, %b
60 %result = fadd float %a, %tmp 60 %result = fadd float %a, %tmp
61 ret float %result 61 ret float %result
62 } 62 }
63 ; CHECK-LABEL: floatAddLeft 63 ; CHECK-LABEL: floatAddLeft
64 ; CHECK-NEXT: sub esp,0xc 64 ; CHECK-NEXT: sub esp,0x1c
65 ; CHECK-NEXT: movss xmm0,DWORD PTR 65 ; CHECK-NEXT: movss xmm0,DWORD PTR
66 ; CHECK-NEXT: movss xmm1,DWORD PTR 66 ; CHECK-NEXT: movss xmm1,DWORD PTR
67 ; CHECK-NEXT: addss xmm1,xmm0 67 ; CHECK-NEXT: addss xmm1,xmm0
68 ; CHECK-NEXT: addss xmm0,xmm1 68 ; CHECK-NEXT: addss xmm0,xmm1
69 69
70 define internal float @floatAddRight(float %a, float %b) { 70 define internal float @floatAddRight(float %a, float %b) {
71 entry: 71 entry:
72 %tmp = fadd float %a, %b 72 %tmp = fadd float %a, %b
73 %result = fadd float %b, %tmp 73 %result = fadd float %b, %tmp
74 ret float %result 74 ret float %result
75 } 75 }
76 ; CHECK-LABEL: floatAddRight 76 ; CHECK-LABEL: floatAddRight
77 ; CHECK-NEXT: sub esp,0xc 77 ; CHECK-NEXT: sub esp,0x1c
78 ; CHECK-NEXT: movss xmm0,DWORD PTR 78 ; CHECK-NEXT: movss xmm0,DWORD PTR
79 ; CHECK-NEXT: movss xmm1,DWORD PTR 79 ; CHECK-NEXT: movss xmm1,DWORD PTR
80 ; CHECK-NEXT: addss xmm0,xmm1 80 ; CHECK-NEXT: addss xmm0,xmm1
81 ; CHECK-NEXT: addss xmm1,xmm0 81 ; CHECK-NEXT: addss xmm1,xmm0
82 82
83 define internal float @floatMultiplyLeft(float %a, float %b) { 83 define internal float @floatMultiplyLeft(float %a, float %b) {
84 entry: 84 entry:
85 %tmp = fmul float %a, %b 85 %tmp = fmul float %a, %b
86 %result = fmul float %a, %tmp 86 %result = fmul float %a, %tmp
87 ret float %result 87 ret float %result
88 } 88 }
89 ; CHECK-LABEL: floatMultiplyLeft 89 ; CHECK-LABEL: floatMultiplyLeft
90 ; CHECK-NEXT: sub esp,0xc 90 ; CHECK-NEXT: sub esp,0x1c
91 ; CHECK-NEXT: movss xmm0,DWORD PTR 91 ; CHECK-NEXT: movss xmm0,DWORD PTR
92 ; CHECK-NEXT: movss xmm1,DWORD PTR 92 ; CHECK-NEXT: movss xmm1,DWORD PTR
93 ; CHECK-NEXT: mulss xmm1,xmm0 93 ; CHECK-NEXT: mulss xmm1,xmm0
94 ; CHECK-NEXT: mulss xmm0,xmm1 94 ; CHECK-NEXT: mulss xmm0,xmm1
95 95
96 define internal float @floatMultiplyRight(float %a, float %b) { 96 define internal float @floatMultiplyRight(float %a, float %b) {
97 entry: 97 entry:
98 %tmp = fmul float %a, %b 98 %tmp = fmul float %a, %b
99 %result = fmul float %b, %tmp 99 %result = fmul float %b, %tmp
100 ret float %result 100 ret float %result
101 } 101 }
102 ; CHECK-LABEL: floatMultiplyRight 102 ; CHECK-LABEL: floatMultiplyRight
103 ; CHECK-NEXT: sub esp,0xc 103 ; CHECK-NEXT: sub esp,0x1c
104 ; CHECK-NEXT: movss xmm0,DWORD PTR 104 ; CHECK-NEXT: movss xmm0,DWORD PTR
105 ; CHECK-NEXT: movss xmm1,DWORD PTR 105 ; CHECK-NEXT: movss xmm1,DWORD PTR
106 ; CHECK-NEXT: mulss xmm0,xmm1 106 ; CHECK-NEXT: mulss xmm0,xmm1
107 ; CHECK-NEXT: mulss xmm1,xmm0 107 ; CHECK-NEXT: mulss xmm1,xmm0
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/alloc.ll ('k') | tests_lit/llvm2ice_tests/ebp_args.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698