1; Regression test for https://bugs.llvm.org/show_bug.cgi?id=32842 2; 3; RUN: opt < %s -S -passes=msan 2>&1 | FileCheck %s 4; RUN: opt < %s -msan -S | FileCheck %s 5;target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 6target triple = "x86_64-unknown-linux-gnu" 7 8define zeroext i1 @_Z1fii(i32 %x, i32 %y) sanitize_memory { 9entry: 10 %cmp = icmp slt i32 %x, %y 11 ret i1 %cmp 12} 13 14; CHECK: [[X:[^ ]+]] = load{{.*}}__msan_param_tls{{.*}} 15; CHECK: [[Y:[^ ]+]] = load{{.*}}__msan_param_tls{{.*}} 16; CHECK: [[OR:[^ ]+]] = or i32 [[X]], [[Y]] 17 18; Make sure the shadow of the (x < y) comparison isn't truncated to i1. 19; CHECK-NOT: trunc i32 [[OR]] to i1 20; CHECK: [[CMP:[^ ]+]] = icmp ne i32 [[OR]], 0 21; CHECK: store i1 [[CMP]],{{.*}}__msan_retval_tls 22