Skip to content

[flang] update ppc-vec-store-elem-order.f90 after #74709 (NFC) #75064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions flang/test/Lower/PowerPC/ppc-vec-store-elem-order.f90
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ subroutine vec_xstd2_test(arg1, arg2, arg3, i)

! LLVMIR: %[[i:.*]] = load i32, ptr %3, align 4
! LLVMIR: %[[iext:.*]] = sext i32 %[[i]] to i64
! LLVMIR: %[[isub:.*]] = sub i64 %[[iext]], 1
! LLVMIR: %[[imul1:.*]] = mul i64 %[[isub]], 1
! LLVMIR: %[[imul2:.*]] = mul i64 %[[imul1]], 1
! LLVMIR: %[[iadd:.*]] = add i64 %[[imul2]], 0
! LLVMIR: %[[isub:.*]] = sub nsw i64 %[[iext]], 1
! LLVMIR: %[[imul1:.*]] = mul nsw i64 %[[isub]], 1
! LLVMIR: %[[imul2:.*]] = mul nsw i64 %[[imul1]], 1
! LLVMIR: %[[iadd:.*]] = add nsw i64 %[[imul2]], 0
! LLVMIR: %[[gep1:.*]] = getelementptr <4 x float>, ptr %2, i64 %[[iadd]]
! LLVMIR: %[[arg1:.*]] = load <4 x float>, ptr %0, align 16
! LLVMIR: %[[arg2:.*]] = load i16, ptr %1, align 2
Expand All @@ -93,10 +93,10 @@ subroutine vec_xstw4_test(arg1, arg2, arg3, i)

! LLVMIR: %[[i:.*]] = load i32, ptr %3, align 4
! LLVMIR: %[[iext:.*]] = sext i32 %[[i]] to i64
! LLVMIR: %[[isub:.*]] = sub i64 %[[iext]], 1
! LLVMIR: %[[imul1:.*]] = mul i64 %[[isub]], 1
! LLVMIR: %[[imul2:.*]] = mul i64 %[[imul1]], 1
! LLVMIR: %[[iadd:.*]] = add i64 %[[imul2]], 0
! LLVMIR: %[[isub:.*]] = sub nsw i64 %[[iext]], 1
! LLVMIR: %[[imul1:.*]] = mul nsw i64 %[[isub]], 1
! LLVMIR: %[[imul2:.*]] = mul nsw i64 %[[imul1]], 1
! LLVMIR: %[[iadd:.*]] = add nsw i64 %[[imul2]], 0
! LLVMIR: %[[gep1:.*]] = getelementptr <4 x float>, ptr %2, i64 %[[iadd]]
! LLVMIR: %[[arg1:.*]] = load <4 x float>, ptr %0, align 16
! LLVMIR: %[[arg2:.*]] = load i16, ptr %1, align 2
Expand Down