@@ -62,7 +62,7 @@ func.func @omp_target_allocmem_scalar_char_kind() -> () {
6262// CHECK-LABEL: define void @omp_target_allocmem_scalar_dynchar(
6363// CHECK-SAME: i32 [[TMP0:%.*]]) {
6464// CHECK-NEXT: [[TMP2:%.*]] = sext i32 [[TMP0]] to i64
65- // CHECK-NEXT: [[TMP3:%.*]] = mul i64 [[TMP2]], 1
65+ // CHECK-NEXT: [[TMP3:%.*]] = mul i64 1, [[TMP2]]
6666// CHECK-NEXT: [[TMP4:%.*]] = mul i64 1, [[TMP3]]
6767// CHECK-NEXT: [[TMP5:%.*]] = call ptr @omp_target_alloc(i64 [[TMP4]], i32 0)
6868// CHECK-NEXT: [[TMP6:%.*]] = ptrtoint ptr [[TMP5]] to i64
@@ -80,7 +80,7 @@ func.func @omp_target_allocmem_scalar_dynchar(%l : i32) -> () {
8080// CHECK-LABEL: define void @omp_target_allocmem_scalar_dynchar_kind(
8181// CHECK-SAME: i32 [[TMP0:%.*]]) {
8282// CHECK-NEXT: [[TMP2:%.*]] = sext i32 [[TMP0]] to i64
83- // CHECK-NEXT: [[TMP3:%.*]] = mul i64 [[TMP2]], 2
83+ // CHECK-NEXT: [[TMP3:%.*]] = mul i64 2, [[TMP2]]
8484// CHECK-NEXT: [[TMP4:%.*]] = mul i64 1, [[TMP3]]
8585// CHECK-NEXT: [[TMP5:%.*]] = call ptr @omp_target_alloc(i64 [[TMP4]], i32 0)
8686// CHECK-NEXT: [[TMP6:%.*]] = ptrtoint ptr [[TMP5]] to i64
@@ -141,7 +141,7 @@ func.func @omp_target_allocmem_array_of_dynchar(%l: i32) -> () {
141141
142142// CHECK-LABEL: define void @omp_target_allocmem_dynarray_of_nonchar(
143143// CHECK-SAME: i64 [[TMP0:%.*]]) {
144- // CHECK-NEXT: [[TMP2:%.*]] = mul i64 [[TMP0]], 12
144+ // CHECK-NEXT: [[TMP2:%.*]] = mul i64 12, [[TMP0]]
145145// CHECK-NEXT: [[TMP3:%.*]] = mul i64 1, [[TMP2]]
146146// CHECK-NEXT: [[TMP4:%.*]] = call ptr @omp_target_alloc(i64 [[TMP3]], i32 0)
147147// CHECK-NEXT: [[TMP5:%.*]] = ptrtoint ptr [[TMP4]] to i64
@@ -157,7 +157,7 @@ func.func @omp_target_allocmem_dynarray_of_nonchar(%e: index) -> () {
157157
158158// CHECK-LABEL: define void @omp_target_allocmem_dynarray_of_nonchar2(
159159// CHECK-SAME: i64 [[TMP0:%.*]]) {
160- // CHECK-NEXT: [[TMP2:%.*]] = mul i64 [[TMP0]], 4
160+ // CHECK-NEXT: [[TMP2:%.*]] = mul i64 4, [[TMP0]]
161161// CHECK-NEXT: [[TMP3:%.*]] = mul i64 [[TMP2]], [[TMP0]]
162162// CHECK-NEXT: [[TMP4:%.*]] = mul i64 1, [[TMP3]]
163163// CHECK-NEXT: [[TMP5:%.*]] = call ptr @omp_target_alloc(i64 [[TMP4]], i32 0)
@@ -174,7 +174,7 @@ func.func @omp_target_allocmem_dynarray_of_nonchar2(%e: index) -> () {
174174
175175// CHECK-LABEL: define void @omp_target_allocmem_dynarray_of_char(
176176// CHECK-SAME: i64 [[TMP0:%.*]]) {
177- // CHECK-NEXT: [[TMP2:%.*]] = mul i64 [[TMP0]], 60
177+ // CHECK-NEXT: [[TMP2:%.*]] = mul i64 60, [[TMP0]]
178178// CHECK-NEXT: [[TMP3:%.*]] = mul i64 1, [[TMP2]]
179179// CHECK-NEXT: [[TMP4:%.*]] = call ptr @omp_target_alloc(i64 [[TMP3]], i32 0)
180180// CHECK-NEXT: [[TMP5:%.*]] = ptrtoint ptr [[TMP4]] to i64
@@ -191,7 +191,7 @@ func.func @omp_target_allocmem_dynarray_of_char(%e : index) -> () {
191191
192192// CHECK-LABEL: define void @omp_target_allocmem_dynarray_of_char2(
193193// CHECK-SAME: i64 [[TMP0:%.*]]) {
194- // CHECK-NEXT: [[TMP2:%.*]] = mul i64 [[TMP0]], 20
194+ // CHECK-NEXT: [[TMP2:%.*]] = mul i64 20, [[TMP0]]
195195// CHECK-NEXT: [[TMP3:%.*]] = mul i64 [[TMP2]], [[TMP0]]
196196// CHECK-NEXT: [[TMP4:%.*]] = mul i64 1, [[TMP3]]
197197// CHECK-NEXT: [[TMP5:%.*]] = call ptr @omp_target_alloc(i64 [[TMP4]], i32 0)
@@ -227,7 +227,7 @@ func.func @omp_target_allocmem_dynarray_of_dynchar(%l: i32, %e : index) -> () {
227227// CHECK-LABEL: define void @omp_target_allocmem_dynarray_of_dynchar2(
228228// CHECK-SAME: i32 [[TMP0:%.*]], i64 [[TMP1:%.*]]) {
229229// CHECK-NEXT: [[TMP3:%.*]] = sext i32 [[TMP0]] to i64
230- // CHECK-NEXT: [[TMP4:%.*]] = mul i64 [[TMP3]], 2
230+ // CHECK-NEXT: [[TMP4:%.*]] = mul i64 2, [[TMP3]]
231231// CHECK-NEXT: [[TMP5:%.*]] = mul i64 [[TMP4]], [[TMP1]]
232232// CHECK-NEXT: [[TMP6:%.*]] = mul i64 [[TMP5]], [[TMP1]]
233233// CHECK-NEXT: [[TMP7:%.*]] = mul i64 1, [[TMP6]]
0 commit comments