@@ -134,11 +134,10 @@ handshake.func @xoriFW(%arg0: !handshake.channel<i8>, %arg1: !handshake.channel<
134134// CHECK-LABEL: handshake.func @shliFW(
135135// CHECK-SAME: %[[VAL_0:.*]]: !handshake.channel<i16>,
136136// CHECK-SAME: %[[VAL_1:.*]]: !handshake.control<>, ...) -> !handshake.channel<i32> attributes {argNames = ["arg0", "start"], resNames = ["out0"]} {
137- // CHECK: %[[VAL_2:.*]] = constant %[[VAL_1]] {value = 4 : i4} : <>, <i4>
138- // CHECK: %[[VAL_3:.*]] = extsi %[[VAL_0]] : <i16> to <i32>
139- // CHECK: %[[VAL_4:.*]] = extsi %[[VAL_2]] : <i4> to <i32>
140- // CHECK: %[[VAL_5:.*]] = shli %[[VAL_3]], %[[VAL_4]] : <i32>
141- // CHECK: end %[[VAL_5]] : <i32>
137+ // CHECK: %[[VAL_2:.*]] = extsi %[[VAL_0]] : <i16> to <i32>
138+ // CHECK: %[[VAL_3:.*]] = constant %[[VAL_1]] {value = 4 : i32} : <>, <i32>
139+ // CHECK: %[[VAL_4:.*]] = shli %[[VAL_2]], %[[VAL_3]] : <i32>
140+ // CHECK: end %[[VAL_4]] : <i32>
142141// CHECK: }
143142handshake.func @shliFW (%arg0: !handshake.channel <i16 >, %start: !handshake.control <>) -> !handshake.channel <i32 > {
144143 %cst = handshake.constant %start {value = 4 : i4 } : <>, <i4 >
@@ -153,12 +152,11 @@ handshake.func @shliFW(%arg0: !handshake.channel<i16>, %start: !handshake.contro
153152// CHECK-LABEL: handshake.func @shrsiFW(
154153// CHECK-SAME: %[[VAL_0:.*]]: !handshake.channel<i16>,
155154// CHECK-SAME: %[[VAL_1:.*]]: !handshake.control<>, ...) -> !handshake.channel<i32> attributes {argNames = ["arg0", "start"], resNames = ["out0"]} {
156- // CHECK: %[[VAL_2:.*]] = constant %[[VAL_1]] {value = 4 : i4} : <>, <i4>
157- // CHECK: %[[VAL_3:.*]] = extui %[[VAL_2]] : <i4> to <i16>
158- // CHECK: %[[VAL_4:.*]] = shrsi %[[VAL_0]], %[[VAL_3]] : <i16>
159- // CHECK: %[[VAL_5:.*]] = trunci %[[VAL_4]] : <i16> to <i12>
160- // CHECK: %[[VAL_6:.*]] = extsi %[[VAL_5]] : <i12> to <i32>
161- // CHECK: end %[[VAL_6]] : <i32>
155+ // CHECK: %[[VAL_2:.*]] = constant %[[VAL_1]] {value = 4 : i16} : <>, <i16>
156+ // CHECK: %[[VAL_3:.*]] = shrsi %[[VAL_0]], %[[VAL_2]] : <i16>
157+ // CHECK: %[[VAL_4:.*]] = trunci %[[VAL_3]] : <i16> to <i12>
158+ // CHECK: %[[VAL_5:.*]] = extsi %[[VAL_4]] : <i12> to <i32>
159+ // CHECK: end %[[VAL_5]] : <i32>
162160// CHECK: }
163161handshake.func @shrsiFW (%arg0: !handshake.channel <i16 >, %start: !handshake.control <>) -> !handshake.channel <i32 > {
164162 %cst = handshake.constant %start {value = 4 : i4 } : <>, <i4 >
@@ -173,12 +171,11 @@ handshake.func @shrsiFW(%arg0: !handshake.channel<i16>, %start: !handshake.contr
173171// CHECK-LABEL: handshake.func @shruiFW(
174172// CHECK-SAME: %[[VAL_0:.*]]: !handshake.channel<i16>,
175173// CHECK-SAME: %[[VAL_1:.*]]: !handshake.control<>, ...) -> !handshake.channel<i32> attributes {argNames = ["arg0", "start"], resNames = ["out0"]} {
176- // CHECK: %[[VAL_2:.*]] = constant %[[VAL_1]] {value = 4 : i4} : <>, <i4>
177- // CHECK: %[[VAL_3:.*]] = extui %[[VAL_2]] : <i4> to <i16>
178- // CHECK: %[[VAL_4:.*]] = shrui %[[VAL_0]], %[[VAL_3]] : <i16>
179- // CHECK: %[[VAL_5:.*]] = trunci %[[VAL_4]] : <i16> to <i12>
180- // CHECK: %[[VAL_6:.*]] = extsi %[[VAL_5]] : <i12> to <i32>
181- // CHECK: end %[[VAL_6]] : <i32>
174+ // CHECK: %[[VAL_2:.*]] = constant %[[VAL_1]] {value = 4 : i16} : <>, <i16>
175+ // CHECK: %[[VAL_3:.*]] = shrui %[[VAL_0]], %[[VAL_2]] : <i16>
176+ // CHECK: %[[VAL_4:.*]] = trunci %[[VAL_3]] : <i16> to <i12>
177+ // CHECK: %[[VAL_5:.*]] = extsi %[[VAL_4]] : <i12> to <i32>
178+ // CHECK: end %[[VAL_5]] : <i32>
182179// CHECK: }
183180handshake.func @shruiFW (%arg0: !handshake.channel <i16 >, %start: !handshake.control <>) -> !handshake.channel <i32 > {
184181 %cst = handshake.constant %start {value = 4 : i4 } : <>, <i4 >
0 commit comments