summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/NVPTX/libcall-intrinsic.ll
blob: 0b5e0224399d17dfb0f0b54d0ae8c971a3572580 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: not llc < %s -march=nvptx 2>&1 | FileCheck %s
; used to seqfault and now fails with an "Undefined external symbol"

; CHECK: LLVM ERROR: Undefined external symbol "__powidf2"
define double @powi(double, i32) {
  %a = call double @llvm.powi.f64(double %0, i32 %1)
  ret double %a
}

declare double @llvm.powi.f64(double, i32) nounwind readnone
OpenPOWER on IntegriCloud