Skip to content

Commit

Permalink
bug fix for non-vec vars with member of x,y,z
Browse files Browse the repository at this point in the history
  • Loading branch information
subarutaro committed Jul 24, 2021
1 parent 54fea8d commit f8a55af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/A64FX.rb
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def convert_to_code_a64fx(conversion_type,predicate=$current_predicate)
when :landnot then
retval="svbic_b_z(" + predicate + "," + @lop.convert_to_code(conversion_type) + "," + @rop.convert_to_code(conversion_type) + ")"
when :dot then
if @rop == "x" || @rop == "y" || @rop == "z" || @rop == "w"
if (@rop == "x" || @rop == "y" || @rop == "z" || @rop == "w") && @lop.type =~ /vec/
retval=@lop.convert_to_code(conversion_type)+"."
retval += ["v0","v1","v2","v3"][["x","y","z","w"].index(@rop)]
#@rop.convert_to_code(conversion_type)
Expand Down

0 comments on commit f8a55af

Please sign in to comment.