Skip to content

Commit d3c180c

Browse files
committed
fixup: Port test to opaque pointers
1 parent dfd363b commit d3c180c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/test/CodeGen/RISCV/load-store-pair.ll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
; RUN: llc -mtriple=riscv64 -target-abi=lp64d -mattr=+d -verify-machineinstrs < %s \
2121
; RUN: | FileCheck %s -check-prefix=RV64D_NOPAIR
2222

23-
define dso_local void @testi(i8** nocapture noundef readonly %a) local_unnamed_addr #0 {
23+
define void @testi(ptr %a) {
2424
; RV32I-LABEL: testi:
2525
; RV32I: # %bb.0: # %entry
2626
; RV32I-NEXT: addi sp, sp, -16
@@ -314,13 +314,13 @@ define dso_local void @testi(i8** nocapture noundef readonly %a) local_unnamed_a
314314
; RV64D_NOPAIR-NEXT: .cfi_def_cfa_offset 0
315315
; RV64D_NOPAIR-NEXT: ret
316316
entry:
317-
%arrayidx = getelementptr inbounds i8*, i8** %a, i64 1
318-
%0 = load i8*, i8** %arrayidx, align 16
319-
%1 = load i8*, i8** %a, align 16
320-
%arrayidx2 = getelementptr inbounds i8*, i8** %a, i64 3
321-
%2 = load i8*, i8** %arrayidx2, align 16
322-
%arrayidx3 = getelementptr inbounds i8*, i8** %a, i64 2
323-
%3 = load i8*, i8** %arrayidx3, align 8
324-
tail call void asm sideeffect "", "{x18},{x19},{x20},{x21}"(i8* %0, i8* %1, i8* %2, i8* %3)
317+
%arrayidx = getelementptr inbounds ptr, ptr %a, i64 1
318+
%0 = load ptr, ptr %arrayidx, align 16
319+
%1 = load ptr, ptr %a, align 16
320+
%arrayidx2 = getelementptr inbounds ptr, ptr %a, i64 3
321+
%2 = load ptr, ptr %arrayidx2, align 16
322+
%arrayidx3 = getelementptr inbounds ptr, ptr %a, i64 2
323+
%3 = load ptr, ptr %arrayidx3, align 8
324+
tail call void asm sideeffect "", "{x18},{x19},{x20},{x21}"(ptr %0, ptr %1, ptr %2, ptr %3)
325325
ret void
326326
}

0 commit comments

Comments
 (0)