Skip to content

Commit e52cf42

Browse files
committed
self review:
- fix spirv version - add missing check
1 parent ca9b5a0 commit e52cf42

File tree

1 file changed

+7
-4
lines changed
  • llvm/test/CodeGen/SPIRV/hlsl-intrinsics

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; RUN: llc -O0 -mtriple=spirv1.5-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-EXP
22
; RUN: llc -O0 -mtriple=spirv1.6-unknown-unknown %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-DOT
3-
; RUN: llc -O0 -mtriple=spirv-unknown-unknown -spirv-ext=+SPV_KHR_integer_dot_product %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-DOT,CHECK-EXT
3+
; RUN: llc -O0 -mtriple=spirv1.5-unknown-unknown -spirv-ext=+SPV_KHR_integer_dot_product %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-DOT,CHECK-EXT
44
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.5-unknown-unknown %s -o - -filetype=obj | spirv-val %}
55
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.6-unknown-unknown %s -o - -filetype=obj | spirv-val %}
6-
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown -spirv-ext=+SPV_KHR_integer_dot_product %s -o - -filetype=obj | spirv-val %}
6+
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv1.5-unknown-unknown -spirv-ext=+SPV_KHR_integer_dot_product %s -o - -filetype=obj | spirv-val %}
77

88
; Make sure dxil operation function calls for dot are generated for int/uint vectors.
99

@@ -125,8 +125,11 @@ entry:
125125

126126
define noundef i64 @dot_uint64_t4(<2 x i64> noundef %a, <2 x i64> noundef %b) {
127127
entry:
128-
; CHECK-EXP: %[[#arg0:]] = OpFunctionParameter %[[#vec2_int_64]]
129-
; CHECK-EXP: %[[#arg1:]] = OpFunctionParameter %[[#vec2_int_64]]
128+
; CHECK: %[[#arg0:]] = OpFunctionParameter %[[#vec2_int_64]]
129+
; CHECK: %[[#arg1:]] = OpFunctionParameter %[[#vec2_int_64]]
130+
131+
; CHECK-DOT: %[[#dot:]] = OpUDot %[[#int_64]] %[[#arg0]] %[[#arg1]]
132+
130133
; CHECK-EXP: %[[#mul_vec:]] = OpIMul %[[#vec2_int_64]] %[[#arg0]] %[[#arg1]]
131134
; CHECK-EXP: %[[#elt0:]] = OpCompositeExtract %[[#int_64]] %[[#mul_vec]] 0
132135
; CHECK-EXP: %[[#elt1:]] = OpCompositeExtract %[[#int_64]] %[[#mul_vec]] 1

0 commit comments

Comments
 (0)