From 71fae33f5e7c1b11e32db695fd24dd50aead737c Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 9 Sep 2022 15:03:35 -0700 Subject: [PATCH] [NFC] Cleanup test for D132913 Preserve vec3 for HLSL Support number for parameter test added in https://reviews.llvm.org/D132913 --- clang/test/CodeGenHLSL/float3.hlsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/CodeGenHLSL/float3.hlsl b/clang/test/CodeGenHLSL/float3.hlsl index 6ee4315..4adda8d 100644 --- a/clang/test/CodeGenHLSL/float3.hlsl +++ b/clang/test/CodeGenHLSL/float3.hlsl @@ -1,9 +1,9 @@ // RUN: %clang --driver-mode=dxc -Tlib_6_7 -fcgl -Fo - %s | FileCheck %s // Make sure float3 is not changed into float4. -// CHECK:<3 x float> @"?foo@@YAT?$__vector@M$02@__clang@@T12@@Z"(<3 x float> noundef %a) +// CHECK:<3 x float> @"?foo@@YAT?$__vector@M$02@__clang@@T12@@Z"(<3 x float> noundef %[[PARAM:[0-9a-zA-Z]+]]) // CHECK:%[[A_ADDR:.+]] = alloca <3 x float>, align 16 -// CHECK-NEXT:store <3 x float> %a, ptr %[[A_ADDR]], align 16 +// CHECK-NEXT:store <3 x float> %[[PARAM]], ptr %[[A_ADDR]], align 16 // CHECK-NEXT:%[[V:[0-9]+]] = load <3 x float>, ptr %[[A_ADDR]], align 16 // CHECK-NEXT:ret <3 x float> %[[V]] float3 foo(float3 a) { -- 2.7.4