aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenOpenCL/half.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenOpenCL/half.cl')
-rw-r--r--test/CodeGenOpenCL/half.cl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenOpenCL/half.cl b/test/CodeGenOpenCL/half.cl
index 7ecae894d03d..bd5ae7f64990 100644
--- a/test/CodeGenOpenCL/half.cl
+++ b/test/CodeGenOpenCL/half.cl
@@ -13,3 +13,11 @@ half test()
return z;
// CHECK: half 0xH3260
}
+
+// CHECK-LABEL: @test_inc(half %x)
+// CHECK: [[INC:%.*]] = fadd half %x, 0xH3C00
+// CHECK: ret half [[INC]]
+half test_inc(half x)
+{
+ return ++x;
+}