Skip to content

vectors longer than 254 are truncated to 1 when passed to intrinsics #7297

@damyanp

Description

@damyanp

Description

template<int N> int VectorLength(vector<float, N>) { return N; } export int Test1(vector<float, 254> Input) { return VectorLength(mul(Input, 1)); // ret i32 254 } export int Test2(vector<float, 255> Input) { return VectorLength(mul(Input, 1)); // EXPECTED: ret i32 255 // ACTUAL : ret i32 1 }

Steps to Reproduce

Compile the above shader with -Tlib_6_9 to see the repro.

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashneeds-triageAwaiting triage

Type

No type

Projects

Status

Triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions