>>32248511They did indeed die. Graves for those lost in the war form a graveyard in XY. Not only that, but many Pokemon fell in battle during the war before AZ fires the weapon.
And speaking of AZ's Floette, it died as well, hence the need for him to bring it back as the Eternal Floette.