aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/DirectX/log2_error.ll
blob: fee8514214851c75027a241ba6f778721a7fa08c (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s

; DXIL operation log2 does not support double overload type
; CHECK: in function log2_double
; CHECK-SAME: Cannot create Log2 operation: Invalid overload type

define noundef double @log2_double(double noundef %a) {
entry:
  %elt.log2 = call double @llvm.log2.f64(double %a)
  ret double %elt.log2
}