Home | History | Annotate | Download | only in DataFlowSanitizer
      1 ; RUN: opt < %s -dfsan -S | FileCheck %s
      2 target 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"
      3 target triple = "x86_64-unknown-linux-gnu"
      4 
      5 ; CHECK: @__dfsan_arg_tls = external thread_local(initialexec) global [64 x i16]
      6 ; CHECK: @__dfsan_retval_tls = external thread_local(initialexec) global i16
      7 
      8 declare i32 @f(i32)
      9 declare float @llvm.sqrt.f32(float)
     10 
     11 ; CHECK: @"dfs$call"
     12 define i32 @call() {
     13   ; CHECK: store{{.*}}__dfsan_arg_tls
     14   ; CHECK: call{{.*}}@"dfs$f"
     15   ; CHECK: load{{.*}}__dfsan_retval_tls
     16   %r = call i32 @f(i32 0)
     17 
     18   ; CHECK-NOT: store{{.*}}__dfsan_arg_tls
     19   %i = call float @llvm.sqrt.f32(float -1.0)
     20 
     21   ; CHECK: store{{.*}}__dfsan_retval_tls
     22   ; CHECK: ret i32
     23   ret i32 %r
     24 }
     25