Skip to content

Printf/int.cpp fails on SPIR-V backend #21314

@sarnex

Description

@sarnex

Describe the bug

[1](https://github.com/intel/llvm/actions/runs/22144861190/job/64020822811#step:18:355)
  ******************** TEST 'SYCL :: Printf/int.cpp' FAILED ********************
  Exit Code: 2
  
  Command Output (stdout):
  --
  # RUN: at line 9
  env ONEAPI_DEVICE_SELECTOR=level_zero:gpu  /__w/llvm/llvm/build-e2e/Printf/Output/int.cpp.tmp.out | /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/Printf/int.cpp
  # executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Printf/Output/int.cpp.tmp.out
  # .---command stderr------------
  # | InvalidModule: Invalid SPIR-V module: input SPIR-V module uses extension 'SPV_EXT_relaxed_printf_string_address_space' which were disabled by --spirv-ext option
  # `-----------------------------
  # error: command failed with exit status: 11
  # executed command: /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/Printf/int.cpp
  # .---command stderr------------
  # | FileCheck error: '<stdin>' is empty.
  # | FileCheck command line:  /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/Printf/int.cpp
  # `-----------------------------
  # error: command failed with exit status: 2
  
  --

https://github.com/intel/llvm/actions/runs/22144861190/job/64020822811

To reproduce

  1. Include a code snippet that is as short as possible
  2. Specify the command which should be used to compile the program
  3. Specify the command which should be used to launch the program
  4. Indicate what is wrong and what was expected

Environment

  • OS: [e.g Windows/Linux]
  • Target device and vendor: [e.g. Intel GPU]
  • DPC++ version: [e.g. commit hash or output of clang++ --version]
  • Dependencies version: [e.g. the output of sycl-ls --verbose]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions