diff options
author | Fangrui Song <maskray@gcc.gnu.org> | 2024-01-30 20:41:12 -0800 |
---|---|---|
committer | Fangrui Song <maskray@gcc.gnu.org> | 2024-02-21 17:20:33 -0800 |
commit | 9ca4c1bf082a4691482ca9f4814fea68f04e2cb3 (patch) | |
tree | f8d9d16e3e47513753249df4886d8af318d85841 /gcc/tree-vect-loop.cc | |
parent | 98004ca00e4bf7a513cf3de65d3c3d9ad373872e (diff) | |
download | gcc-9ca4c1bf082a4691482ca9f4814fea68f04e2cb3.zip gcc-9ca4c1bf082a4691482ca9f4814fea68f04e2cb3.tar.gz gcc-9ca4c1bf082a4691482ca9f4814fea68f04e2cb3.tar.bz2 |
RISC-V: Add tests for constraints "i" and "s"
The constraints "i" and "s" can be used with a symbol that binds
externally, e.g.
```
namespace ns { extern int var, a[4]; }
void foo() {
asm(".pushsection .xxx,\"aw\"; .dc.a %0; .popsection" :: "s"(&ns::var));
asm(".reloc ., BFD_RELOC_NONE, %0" :: "s"(&ns::a[3]));
}
```
gcc/testsuite/ChangeLog:
* gcc.target/riscv/asm-raw-symbol.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions