rot.wast 642 B

1234567891011121314
  1. ;;-------------------------------------------------------------------------------------------------------
  2. ;; Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. ;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. ;;-------------------------------------------------------------------------------------------------------
  5. (module
  6. (func (export "rotl") (param i32) (param i32) (result i32)
  7. (return (i32.rotl (get_local 0) (get_local 1)))
  8. )
  9. (func (export "rotr") (param i32) (param i32) (result i32)
  10. (return (i32.rotr (get_local 0) (get_local 1)))
  11. )
  12. )