Skip to content

Commit

Permalink
add test for scalar inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bob80905 committed Aug 2, 2024
1 parent 3eab70e commit d04a061
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions llvm/test/CodeGen/DirectX/length_invalid_intrinsic_error.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
; RUN: not opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s

; DXIL operation length does not support scalar types
; CHECK: error: invalid intrinsic signature

define noundef float @test_length_float(float noundef %p0) {
entry:
%hlsl.length = call float @llvm.dx.length.f32(float %p0)
ret float %hlsl.length
}

0 comments on commit d04a061

Please sign in to comment.