From: Sven van Haastregt Date: Fri, 17 May 2019 09:25:38 +0000 (+0000) Subject: [NFC] Fix line endings in OpenCL tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=648d43101559873b93fbcd6a7e92ec9e3af40b99;p=clang [NFC] Fix line endings in OpenCL tests git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361004 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenOpenCL/no-signed-zeros.cl b/test/CodeGenOpenCL/no-signed-zeros.cl index 14f6411b35..5cbff4dd9e 100644 --- a/test/CodeGenOpenCL/no-signed-zeros.cl +++ b/test/CodeGenOpenCL/no-signed-zeros.cl @@ -1,10 +1,10 @@ -// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL -// RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NO-SIGNED-ZEROS - -float signedzeros(float a) { - return a; -} - -// CHECK: attributes -// NORMAL: "no-signed-zeros-fp-math"="false" -// NO-SIGNED-ZEROS: "no-signed-zeros-fp-math"="true" +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL +// RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NO-SIGNED-ZEROS + +float signedzeros(float a) { + return a; +} + +// CHECK: attributes +// NORMAL: "no-signed-zeros-fp-math"="false" +// NO-SIGNED-ZEROS: "no-signed-zeros-fp-math"="true" diff --git a/test/SemaOpenCL/array-init.cl b/test/SemaOpenCL/array-init.cl index d9691d86dd..c2cc5e6869 100644 --- a/test/SemaOpenCL/array-init.cl +++ b/test/SemaOpenCL/array-init.cl @@ -1,20 +1,20 @@ -// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0 -// expected-no-diagnostics - -__kernel void k1(queue_t q1, queue_t q2) { - queue_t q[] = {q1, q2}; -} - -__kernel void k2(read_only pipe int p) { - reserve_id_t i1 = reserve_read_pipe(p, 1); - reserve_id_t i2 = reserve_read_pipe(p, 1); - reserve_id_t i[] = {i1, i2}; -} - -event_t create_event(); -__kernel void k3() { - event_t e1 = create_event(); - event_t e2 = create_event(); - event_t e[] = {e1, e2}; -} - +// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0 +// expected-no-diagnostics + +__kernel void k1(queue_t q1, queue_t q2) { + queue_t q[] = {q1, q2}; +} + +__kernel void k2(read_only pipe int p) { + reserve_id_t i1 = reserve_read_pipe(p, 1); + reserve_id_t i2 = reserve_read_pipe(p, 1); + reserve_id_t i[] = {i1, i2}; +} + +event_t create_event(); +__kernel void k3() { + event_t e1 = create_event(); + event_t e2 = create_event(); + event_t e[] = {e1, e2}; +} +