zephyr/samples
Kai Vehmanen 60325019aa samples/subsys/audio/sof: use -fstrict-overflow for SOF
Align compiler flags of SOF Zephyr build with the build SOF XTOS
and use -fstrict-overflow.

With -fno-strict-overflow, some versions of XCC compiler (e.g. xt-xcc
12.0.8) always emit a "bltu" instruction to check for overflow in loops
like:

  unsigned int n;
  for(n = 0; n < 1024; n++)
	do_arithmetic();

With "-fno-strict-overflow", you'll have:
  18:   068076                  loop    a0, 22 <dummy_dspload+0x22>
  1b:   445a                    add.n   a4, a4, a5
  1d:   551b                    addi.n  a5, a5, 1
  1f:   023657                  bltu    a6, a5, 25 <dummy_dspload+0x25>
  22:   fffc86                  j       18 <dummy_dspload+0x18>

With "-fstrict-overflow":
  16:   038476                  loop    a4, 1d <dummy_dspload+0x1d>
  19:   223a                    add.n   a2, a2, a3
  1b:   331b                    addi.n  a3, a3, 1

As this is a common pattern in audio DSP code, change the default
for SOF builds to -fstrict-overflow.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2022-01-07 10:46:14 -05:00
..
application_development cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
arch cmake: use find_package() instead of literal include in tests and samples 2021-11-01 10:33:09 -04:00
basic samples: Take into account PINCTRL in minimal configurations 2021-12-21 18:30:35 +01:00
bluetooth Bluetooth: host: Align usage of cte_type in DF host implementation 2022-01-04 16:02:40 +01:00
boards tests: fix typos and misnamed platforms 2021-12-17 12:24:37 -05:00
compression cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
drivers samples: exclude platform stm32f769i_disco 2022-01-05 14:59:58 -05:00
hello_world tests: uefi: move uefi test out of hello world 2021-10-22 06:36:51 -04:00
kernel tests: kernel: cycle64: mark test as slow 2021-11-29 10:35:49 -05:00
modules samples, modules: tflite-micro: reduce sample test case noise 2021-12-13 19:24:32 -06:00
net samples: big_http_download: make num_iterations unsigned 2022-01-05 15:00:32 -05:00
philosophers samples: fix wrong extra_args definitions 2022-01-04 17:15:06 -05:00
posix samples/posix: eventfd: Prevent run in twister when SRAM below 32K 2021-09-20 19:48:34 -04:00
sensor samples: sensor: Add sample for MH-Z19B 2021-12-20 18:47:47 +01:00
shields drivers: sensor: Const sensor trigger data in trigger handler 2021-10-27 15:09:35 -04:00
subsys samples/subsys/audio/sof: use -fstrict-overflow for SOF 2022-01-07 10:46:14 -05:00
synchronization cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
tfm_integration samples/tfm_integration: psa_crypto: Remove nucleo_l552ze_q 2022-01-04 09:05:11 -05:00
userspace samples: userspace: fix syscall_perf test cannot be run 2022-01-04 15:51:43 -05:00
classic.rst doc: fix top samples doc index 2021-03-09 17:48:18 -05:00
index.rst samples: compression: lz4: lz4 sample application 2021-06-12 17:21:55 +02:00