1; RUN: llc -mtriple=aarch64-linux-gnu -stop-after=irtranslator -enable-cse-in-irtranslator=1 -global-isel -verify-machineinstrs %s -o - 2>&1 | FileCheck %s 2 3; CHECK-LABEL: name: test_split_struct 4; CHECK: [[ADDR:%[0-9]+]]:_(p0) = COPY $x0 5; CHECK: [[LO:%[0-9]+]]:_(s64) = G_LOAD %0(p0) :: (load 8 from %ir.ptr) 6; CHECK: [[CST:%[0-9]+]]:_(s64) = G_CONSTANT i64 8 7; CHECK: [[GEP:%[0-9]+]]:_(p0) = G_PTR_ADD [[ADDR]], [[CST]](s64) 8; CHECK: [[HI:%[0-9]+]]:_(s64) = G_LOAD [[GEP]](p0) :: (load 8 from %ir.ptr + 8) 9 10; CHECK: [[SP:%[0-9]+]]:_(p0) = COPY $sp 11; CHECK: [[CST2:%[0-9]+]]:_(s64) = G_CONSTANT i64 0 12; CHECK: [[GEP2:%[0-9]+]]:_(p0) = G_PTR_ADD [[SP]], [[CST2]](s64) 13; CHECK: G_STORE [[LO]](s64), [[GEP2]](p0) :: (store 8 into stack, align 1) 14; CHECK: [[GEP3:%[0-9]+]]:_(p0) = G_PTR_ADD [[SP]], [[CST]](s64) 15; CHECK: G_STORE [[HI]](s64), [[GEP3]](p0) :: (store 8 into stack + 8, align 1) 16define void @test_split_struct([2 x i64]* %ptr) { 17 %struct = load [2 x i64], [2 x i64]* %ptr 18 call void @take_split_struct([2 x i64]* null, i64 1, i64 2, i64 3, 19 i64 4, i64 5, i64 6, 20 [2 x i64] %struct) 21 ret void 22} 23 24declare void @take_split_struct([2 x i64]* %ptr, i64, i64, i64, 25 i64, i64, i64, 26 [2 x i64] %in) ; 27