diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-07-23 22:17:12 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:06 +0100 |
commit | 8a33d0f222d5f6e234f5c9c5ae5a1f5e7f0cd084 (patch) | |
tree | f81d241e924dc83e7dfdc66e90648f211c04eda9 /gcc | |
parent | 8a56194dd27fda4c3b87f025f386a82780392692 (diff) | |
download | gcc-8a33d0f222d5f6e234f5c9c5ae5a1f5e7f0cd084.zip gcc-8a33d0f222d5f6e234f5c9c5ae5a1f5e7f0cd084.tar.gz gcc-8a33d0f222d5f6e234f5c9c5ae5a1f5e7f0cd084.tar.bz2 |
gccrs: Added counting to check for asm_construct_outputs
gcc/rust/ChangeLog:
* backend/rust-compile-asm.cc (CompileAsm::asm_construct_outputs):
Set up counting to check
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/backend/rust-compile-asm.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-asm.cc b/gcc/rust/backend/rust-compile-asm.cc index 0dd4f67..9305a90 100644 --- a/gcc/rust/backend/rust-compile-asm.cc +++ b/gcc/rust/backend/rust-compile-asm.cc @@ -96,6 +96,13 @@ tree CompileAsm::asm_construct_outputs (HIR::InlineAsm &expr) { // TODO: Do i need to do this? + int count = 0; + + for (auto &output : expr.get_operands ()) + { + if (output.register_type == AST::InlineAsmOperand::RegisterType::Out) + count++; + } return NULL_TREE; } |