Skip to content

Commit 89fb366

Browse files
committed
changed target env versions, added ending new line in smoothstep-errors.c
1 parent 4eba766 commit 89fb366

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clang/test/SemaSPIRV/BuiltIns/smoothstep-errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ float test_mismatched_return(float2 p0) {
5151
float3 test_mismatched_return2(float2 p0) {
5252
return __builtin_spirv_smoothstep(p0, p0, p0);
5353
// expected-error@-1 {{returning 'float2' (vector of 2 'float' values) from a function with incompatible result type 'float3' (vector of 3 'float' values)}}
54-
}
54+
}

llvm/test/CodeGen/SPIRV/hlsl-intrinsics/smoothstep.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
2-
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val --target-env vulkan1.2 %}
2+
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val --target-env vulkan1.3 %}
33

44
; Make sure SPIRV operation function calls for smoothstep are lowered correctly.
55

llvm/test/CodeGen/SPIRV/opencl/smoothstep.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
22
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
3-
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val --target-env vulkan1.2 %}
4-
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val --target-env vulkan1.2 %}
3+
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val --target-env spv1.6 %}
4+
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val --target-env spv1.6 %}
55

66
; CHECK-DAG: %[[#op_ext_cl:]] = OpExtInstImport "OpenCL.std"
77

0 commit comments

Comments
 (0)