[llvm] [AMDGPU][Test][AIX] use tr instead of sed for line split (PR #175557)

Grigor Nikolov via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 12 08:15:03 PST 2026


grigornik wrote:

> What exactly is different about `sed`'s behavior between the GNU tools versus the ones that exist on AIX to cause this test to fail? Is our usage here not POSIX compliant?

Regrettably system's  `sed 's/,/,\n/g'` on AIX adds symbol `n` .
To mimic the desired behaviour with system's sed, it would need literal newline in the replacement - example:
```
cat file  | sed 's/,/,\
/g'
```
Which imho seems clumsy, thus the `tr` approach


https://github.com/llvm/llvm-project/pull/175557


More information about the llvm-commits mailing list