diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index b52a1004ae085..fe494e16472db 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -8671,7 +8671,8 @@ void SPIRVTranslator::ConstructJob(Compilation &C, const JobAction &JA, ",+SPV_INTEL_variable_length_array,+SPV_INTEL_fp_fast_math_mode" ",+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse" ",+SPV_INTEL_long_constant_composite" - ",+SPV_INTEL_fpga_invocation_pipelining_attributes"; + ",+SPV_INTEL_fpga_invocation_pipelining_attributes" + ",+SPV_INTEL_fpga_dsp_control"; ExtArg = ExtArg + DefaultExtArg + INTELExtArg; if (!C.getDriver().isFPGAEmulationMode()) // Enable SPV_INTEL_usm_storage_classes only for FPGA hardware, diff --git a/clang/test/Driver/sycl-spirv-ext.c b/clang/test/Driver/sycl-spirv-ext.c index 9789a9d6b5fe9..2626c10afeaaa 100644 --- a/clang/test/Driver/sycl-spirv-ext.c +++ b/clang/test/Driver/sycl-spirv-ext.c @@ -47,6 +47,7 @@ // CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse // CHECK-DEFAULT-SAME:,+SPV_INTEL_long_constant_composite // CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes +// CHECK-DEFAULT-SAME:,+SPV_INTEL_fpga_dsp_control // CHECK-DEFAULT-SAME:,+SPV_INTEL_token_type" // CHECK-FPGA-HW: llvm-spirv{{.*}}"-spirv-ext=-all // CHECK-FPGA-HW-SAME:,+SPV_EXT_shader_atomic_float_add @@ -70,4 +71,5 @@ // CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_cluster_attributes,+SPV_INTEL_loop_fuse // CHECK-FPGA-HW-SAME:,+SPV_INTEL_long_constant_composite // CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_invocation_pipelining_attributes -// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes" +// CHECK-FPGA-HW-SAME:,+SPV_INTEL_fpga_dsp_control +// CHECK-FPGA-HW-SAME:,+SPV_INTEL_usm_storage_classes" \ No newline at end of file