
Always read bitcode according to the -opaque-pointers mode. Do not perform auto-detection to implicitly switch to typed pointers. This is a step towards removing typed pointer support, and also eliminates the class of problems where linking may fail if a typed pointer module is loaded before an opaque pointer module. (The latest place where this was encountered is D139924, but this has previously been fixed in other places doing bitcode linking as well.) Differential Revision: https://reviews.llvm.org/D139940
19 lines
831 B
LLVM
19 lines
831 B
LLVM
; RUN: llvm-dis < %s.bc | FileCheck %s
|
|
|
|
%struct.__neon_int8x8x2_t = type { <8 x i8>, <8 x i8> }
|
|
|
|
declare %struct.__neon_int8x8x2_t @llvm.aarch64.neon.ld2.v8i8.p0i8(i8*)
|
|
|
|
; CHECK-LABEL: define %struct.__neon_int8x8x2_t @test_named_struct_return(ptr %A) {
|
|
; CHECK: %1 = call { <8 x i8>, <8 x i8> } @llvm.aarch64.neon.ld2.v8i8.p0(ptr %A)
|
|
; CHECK: %2 = extractvalue { <8 x i8>, <8 x i8> } %1, 0
|
|
; CHECK: %3 = insertvalue %struct.__neon_int8x8x2_t poison, <8 x i8> %2, 0
|
|
; CHECK: %4 = extractvalue { <8 x i8>, <8 x i8> } %1, 1
|
|
; CHECK: %5 = insertvalue %struct.__neon_int8x8x2_t %3, <8 x i8> %4, 1
|
|
; CHECK: ret %struct.__neon_int8x8x2_t %5
|
|
|
|
define %struct.__neon_int8x8x2_t @test_named_struct_return(i8* %A) {
|
|
%val = call %struct.__neon_int8x8x2_t @llvm.aarch64.neon.ld2.v8i8.p0i8(i8* %A)
|
|
ret %struct.__neon_int8x8x2_t %val
|
|
}
|