brintos

brintos / llvm-project-archived public Read only

0
0
Text · 332 B · 2caf766 Raw
16 lines · plain
1// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip -emit-llvm -fcuda-is-device -o - %s | FileCheck %s2 3#define __device__ __attribute__((device))4 5// CHECK-LABEL: @_Z2d0DF16_6// CHECK: fpext7__device__ float d0(_Float16 x) {8  return x;9}10 11// CHECK-LABEL: @_Z2d1f12// CHECK: fptrunc13__device__ _Float16 d1(float x) {14  return x;15}16