summaryrefslogtreecommitdiffhomepage
path: root/ptx/src/ptx.lalrpop
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2020-06-17 02:53:46 +0200
committerAndrzej Janik <[email protected]>2020-06-17 02:53:46 +0200
commit279e6246ba0ac3fc7b499497514d324c5bce1a78 (patch)
tree531118161eef27711d718f29045fd7c491678a53 /ptx/src/ptx.lalrpop
parent4a0edf0e14cb6efb7d7a203adb5d4a0303b45d90 (diff)
downloadZLUDA-279e6246ba0ac3fc7b499497514d324c5bce1a78.tar.gz
ZLUDA-279e6246ba0ac3fc7b499497514d324c5bce1a78.zip
Finish implementing implicit conversions
Diffstat (limited to 'ptx/src/ptx.lalrpop')
-rw-r--r--ptx/src/ptx.lalrpop4
1 files changed, 2 insertions, 2 deletions
diff --git a/ptx/src/ptx.lalrpop b/ptx/src/ptx.lalrpop
index 79290da..22b91af 100644
--- a/ptx/src/ptx.lalrpop
+++ b/ptx/src/ptx.lalrpop
@@ -386,7 +386,7 @@ ShlType = {
// https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#data-movement-and-conversion-instructions-st
// Warning: NVIDIA documentation is incorrect, you can specify scope only once
InstSt: ast::Instruction<&'input str> = {
- "st" <q:LdStQualifier?> <ss:StStateSpace?> <cop:StCacheOperator?> <v:VectorPrefix?> <t:MemoryType> "[" <dst:ID> "]" "," <src:Operand> => {
+ "st" <q:LdStQualifier?> <ss:StStateSpace?> <cop:StCacheOperator?> <v:VectorPrefix?> <t:MemoryType> "[" <src1:Operand> "]" "," <src2:Operand> => {
ast::Instruction::St(
ast::StData {
qualifier: q.unwrap_or(ast::LdStQualifier::Weak),
@@ -395,7 +395,7 @@ InstSt: ast::Instruction<&'input str> = {
vector: v,
typ: t
},
- ast::Arg2{dst:dst, src:src}
+ ast::Arg2St { src1:src1, src2:src2 }
)
}
};