xref: /llvm-project/llvm/test/CodeGen/DirectX/normalize_error.ll (revision b55c52c047a167f42abbde9a33356cfb96b82c7f)
1*7d0ca601SFarzon Lotfi; RUN: not opt -S -dxil-intrinsic-expansion -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-library %s 2>&1 | FileCheck %s
21b2d11deSJoshua Batista
31b2d11deSJoshua Batista; DXIL operation normalize does not support double overload type
41b2d11deSJoshua Batista; CHECK: Cannot create Dot2 operation: Invalid overload type
51b2d11deSJoshua Batista
61b2d11deSJoshua Batistadefine noundef <2 x double> @test_normalize_double2(<2 x double> noundef %p0) {
71b2d11deSJoshua Batistaentry:
81b2d11deSJoshua Batista  %hlsl.normalize = call <2 x double> @llvm.dx.normalize.v2f32(<2 x double> %p0)
91b2d11deSJoshua Batista  ret <2 x double> %hlsl.normalize
101b2d11deSJoshua Batista}
11