1 // RUN
: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
3 typedef __attribute__
(( ext_vector_type
(4) )) float float4
;
5 float spscalardiv
(float a
, float b
) {
7 // CHECK
: fdiv
{{.
*}}, !fpmath
![[MD
:[0-
9]+]]
11 float4 spvectordiv
(float4 a
, float4 b
) {
12 // CHECK
: @spvectordiv
13 // CHECK
: fdiv
{{.
*}}, !fpmath
![[MD]]
17 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
19 double dpscalardiv(double a, double b) {
20 // CHECK: @dpscalardiv
25 // CHECK: ![[MD]] = !{float
2.500000e+00}