1; RUN: opt < %s -msan-eager-checks -msan-check-access-address=0 -msan-track-origins=1 -S -passes='module(msan-module),function(msan)' 2>&1 | \
2; RUN:   FileCheck -allow-deprecated-dag-overlap --check-prefix=CHECK %s
3
4target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
5target triple = "x86_64-unknown-linux-gnu"
6
7define noundef [2 x i24] @check_array([2 x i24]* %p) sanitize_memory {
8; CHECK: @check_array([2 x i24]* [[P:%.*]])
9; CHECK: [[O:%.*]] = load [2 x i24], [2 x i24]* [[P]]
10  %o = load [2 x i24], [2 x i24]* %p
11; CHECK: [[FIELD0:%.+]] = extractvalue [2 x i24] %_msld, 0
12; CHECK: [[FIELD1:%.+]] = extractvalue [2 x i24] %_msld, 1
13; CHECK: [[F1_OR:%.+]] = or i24 [[FIELD0]], [[FIELD1]]
14; CHECK: %_mscmp = icmp ne i24 [[F1_OR]], 0
15; CHECK: br i1 %_mscmp
16; CHECK: call void @__msan_warning
17; CHECK: ret [2 x i24] [[O]]
18  ret [2 x i24] %o
19}
20